摘要: 在jsp和class文件中调用的相对路径不同。 在jsp里,根目录是WebRoot 在class文件中,根目录是WebRoot/WEB-INF/classes 当然你也可以用System.getProperty("user.dir")获取你工程的绝对路径。 1.jsp中取得路径: 以工程名为TEST 阅读全文
posted @ 2017-10-14 11:50 shuzu渊 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 1、页面内容 <div style="width:900px;height:400px;" id="tableInfo"></div> 2、js内容 $.ajax({ //使用JQuery内置的Ajax方法 type : "post", //post请求方式 async : true, //异步请求 阅读全文
posted @ 2017-10-13 13:02 shuzu渊 阅读(5039) 评论(1) 推荐(0) 编辑
摘要: 1、将要使用到的jar包导入项目(1、commons-lang-2.3.jar 2、barcode4j-light-2.0.jar) 2、新建类 BarcodeUtil 3、代码部分 package com.sale.util;import java.awt.image.BufferedImage; 阅读全文
posted @ 2017-10-13 12:41 shuzu渊 阅读(1416) 评论(0) 推荐(0) 编辑
摘要: jdbc.properties文件内容 jdbc.driverClassName=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/test?useUnicode=true&amp;characterEncoding=utf8 jd 阅读全文
posted @ 2017-04-05 16:56 shuzu渊 阅读(272) 评论(0) 推荐(0) 编辑
摘要: JAVA Calendar判断某年某月有多少天 阅读全文
posted @ 2017-03-17 15:27 shuzu渊 阅读(9465) 评论(0) 推荐(0) 编辑