摘要:
一、pom.xml 二、ehcache.xml 三、applicationContext.xml 四、在dao中添加注解 使用@QueryHints注解 令查询方法使用查询缓存 五、在类中定义 外:默认情况下二级缓存只会对load get 之类的方法缓存, 想list iterator 之类的方法也 阅读全文
摘要:
一、pom.xml <!-- spring security --> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-core</artifactId> <version 阅读全文
摘要:
一、新建maven项目 选中maven-aechetype-webapp group Id一般为公司域 ;Artifact Id相当于项目名称 ;version不需要更改;Package不使用默认,手动清空 Finish 项目结构如图 报错是因为没有加入servlet API 暂时不用管。 二、配置 阅读全文
摘要:
http://search.maven.org/#search%7Cga%7C1%7C 阅读全文