摘要:
package test.vfs;import java.io.File;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;import org.apache.commons.vfs2... 阅读全文
posted @ 2015-07-23 21:58 季枫 阅读(1543) 评论(0) 推荐(0)
|
摘要:
package test.vfs;import java.io.File;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;import org.apache.commons.vfs2... 阅读全文
posted @ 2015-07-23 21:58 季枫 阅读(1543) 评论(0) 推荐(0)
摘要:
用注解来向Spring容器注册Bean。需要在applicationContext.xml中注册。如:在base-package指明一个包1 表明cn.gacl.java包及其子包中,如果某个类的头上带有特定的注解【@Component/@Repository/@Service/@Controlle... 阅读全文
posted @ 2015-07-23 21:40 季枫 阅读(295) 评论(0) 推荐(0)
摘要:
近日在使用SpringSecurity的项目中发现一个小问题,就是在接口上加了@Secured标注限制调用接口权限时,某些JUnit无法正常调用了。例如: @Secured(PrivilegeDAO.ROLE_REMIND_CREATE) public Serializable save(Users... 阅读全文
posted @ 2015-07-23 21:39 季枫 阅读(948) 评论(0) 推荐(0)
摘要:
分配置文件在classpath下和web-inf下两种情况的加载:ApplicationContext context = new FileSystemXmlApplicationContext("WebRoot/WEB-INF/applicationContext.xml"); new Class... 阅读全文
posted @ 2015-07-23 20:54 季枫 阅读(12679) 评论(0) 推荐(1)
摘要:
在Eclipse中使用JUnit4进行单元测试(初级篇)在Eclipse中使用JUnit4进行单元测试(中级篇)在Eclipse中使用JUnit4进行单元测试(高级篇) 阅读全文
posted @ 2015-07-23 20:42 季枫 阅读(220) 评论(0) 推荐(0)
摘要:
http://www.open-open.com/lib/view/open1363156299203.html 阅读全文
posted @ 2015-07-23 15:15 季枫 阅读(430) 评论(0) 推荐(0) |
||