spring
elvesfish
这个作者很懒,什么都没留下…
展开
-
spring quartz集群
spring quartz 集群配置信息原创 2016-05-31 14:48:56 · 434 阅读 · 0 评论 -
Ehcache 分布式缓存 -springMVC
EHcache:http://www.ehcache.org/documentation/indexEhCache 分布式缓存/缓存集群开发环境:System:WindowsJavaEE Server:tomcat5.0.2.8、tomcat6JavaSDK: jdk6+IDE:eclipse、MyEclipse 6.6转载 2017-04-17 17:24:35 · 469 阅读 · 0 评论 -
spring jpa动态条件查询并分页
@GetMapping("/api/listPage") @ResponseBody public Map listPage(@RequestParam(value = "pageNumber", defaultValue = "1") Integer pageNumber, @RequestParam原创 2017-12-18 10:47:07 · 3412 阅读 · 1 评论 -
spring data jpa动态条件查询
这里,spring data jpa为我们提供了JpaSpecificationExecutor接口,只要简单实现toPredicate方法就可以实现复杂的查询@Repositorypublic interface MonitorRepository extends JpaRepository, Long>, JpaSpecificationExecutor {}原创 2017-12-18 10:51:25 · 2756 阅读 · 1 评论 -
spring boot +shiro+freemarker
spring boot + shiro +freemarkftl页面加上shiro-tag组件1.pom.xmlUTF-8UTF-81.81.4.05.0.1.RELEASEorg.springframework.bootspring-boot-starter-freemarkero原创 2017-12-28 15:49:58 · 2365 阅读 · 0 评论 -
自增长:java.sql.SQLException: Field 'id' doesn't have a default value
自增长:java.sql.SQLException: Field 'id' doesn't have a default value 今天用java程序向mysql数据库中进行数据记录的时候,用的id自增长时,报了异常java.sql.SQLException: Field 'id' doesn't have a default value错误,看了一篇博文,决定按他的方法试试。:其中现在修改了...转载 2018-03-22 14:44:51 · 1466 阅读 · 0 评论 -
spring-boot-cache
Spring定义了org.springframework.cache.CacheManager和org.springframework.cache.Cache接口用来统一不 同的缓存技术。其中,CacheManager是Spring提供的各种缓存技术抽象接口,Cache接口包含缓存的各种操作(增 删改查,我们一般不会直接和此接口打交道)。 针对不同的缓存技术,是需要实现不...转载 2018-04-02 11:05:00 · 197 阅读 · 0 评论