摘要: 1在src下面新建file名为log4j.properties内容如下:# Configure logging for testing: optionally with log filelog4j.rootLogger=WARN, stdout# log4j.rootLogger=WARN, std... 阅读全文
posted @ 2014-06-26 13:14 行云有影 阅读(330) 评论(0) 推荐(0)
摘要: 1、使用?通配符public User validate(String userName, String password) { String hql = "from User u where u.userName = ? and u.password = ?"; Use... 阅读全文
posted @ 2014-06-26 13:10 行云有影 阅读(1014) 评论(0) 推荐(0)