2015年4月23日

spring加载jar包中多个配置文件

摘要: 转自:http://www.cnblogs.com/GarfieldTom/p/3723915.html 阅读全文

posted @ 2015-04-23 16:10 时光让我遇到你 阅读(264) 评论(0) 推荐(0) 编辑

2015年4月22日

Eclipse下运行拷贝的项目,更改项目名后报404

摘要: 右键项目->Properties->Web Project Settings将“Context root”改为你的项目名称 阅读全文

posted @ 2015-04-22 09:41 时光让我遇到你 阅读(571) 评论(0) 推荐(0) 编辑

2015年4月20日

ssh框架用JUnit测试

摘要: public class testAuxDict { //读spring配置文件 public static BeanFactory factory = new ClassPathXmlApplicationContext("applicationContext.xml"); AuxDict... 阅读全文

posted @ 2015-04-20 10:50 时光让我遇到你 阅读(245) 评论(0) 推荐(0) 编辑

2015年4月17日

SqlServer查询数据库所有表

摘要: //SqlServer查询数据库所有表SELECT * FROM SYSOBJECTS WHERE TYPE='U' and name like '%dict%' 阅读全文

posted @ 2015-04-17 16:45 时光让我遇到你 阅读(283) 评论(0) 推荐(0) 编辑

JAVA-反射-getGenericSuperclass()

摘要: 1 public class Person { 2 3 } 4 5 import java.lang.reflect.ParameterizedType; 6 import java.lang.reflect.Type; 7 8 public class Student extends Per... 阅读全文

posted @ 2015-04-17 16:14 时光让我遇到你 阅读(186) 评论(0) 推荐(0) 编辑

2015年4月7日

trim()函数IE7/8不兼容

摘要: js中重写trim()函数 阅读全文

posted @ 2015-04-07 11:57 时光让我遇到你 阅读(172) 评论(0) 推荐(0) 编辑

2015年4月2日

后台程序控制js弹出框

摘要: public void jsWindow(String msg, int i){ HttpServletResponse response=ServletActionContext.getResponse(); try { response.setContentType("text/html... 阅读全文

posted @ 2015-04-02 17:14 时光让我遇到你 阅读(251) 评论(0) 推荐(0) 编辑

ajax 实例

摘要: jsp页面代码:后台action代码:try { /** 获取response对象 */ HttpServletResponse response = ServletActionContext.getResponse(); /** 获取输出o... 阅读全文

posted @ 2015-04-02 17:12 时光让我遇到你 阅读(145) 评论(0) 推荐(0) 编辑

2015年3月27日

/-- Encapsulated exception ------------\ java.lang.NoSuchMethodException: com.sjzdaj.po.Class.setN_id([Ljava.lang.String;)

摘要: 转自:http://ruinxdgzy.iteye.com/blog/805138 阅读全文

posted @ 2015-03-27 16:56 时光让我遇到你 阅读(1036) 评论(0) 推荐(0) 编辑

2015年3月25日

java:添加一条数据到数据库中文乱码

摘要: 在数据库链接地址后面加上:characterEncoding=UTF8如:jdbc\:mysql\://localhost\:3306/db_sjzdaj?relaxAutoCommit=true&zeroDateTimeBehavior=convertToNull&characterEncodin... 阅读全文

posted @ 2015-03-25 18:13 时光让我遇到你 阅读(414) 评论(0) 推荐(0) 编辑

导航