摘要: 错误信息: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cardSalDao' defined in file [E:\GItUp\pointerCard+redis\ 阅读全文
posted @ 2018-07-11 22:43 别动我的猫 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 1.结构 2.pom.xml 3.applicationContext.xml 4.springmvc-servlet.xml 5.mybatis-cache.xml 6.cache 7.调用在mapper.xml中加入:<cache eviction="LRU" type="cn.jbit.cac 阅读全文
posted @ 2018-07-11 22:39 别动我的猫 阅读(690) 评论(0) 推荐(0) 编辑
摘要: 本人转自http://hbxflihua.iteye.com/blog/2320584#bc2396403 spring目前在@Cacheable和@CacheEvict等注解上不支持缓存时效设置,只允许通过配置文件设置全局时效。这样就很不方便设定时间。比如系统参数和业务数据的时效是不一样的,这给程 阅读全文
posted @ 2018-07-11 21:55 别动我的猫 阅读(1106) 评论(0) 推荐(0) 编辑
摘要: 本文转载http://hbxflihua.iteye.com/blog/2383495 1、引入spring-data-redis依赖的jar 包 Xml代码 <dependency> <groupId>org.springframework.data</groupId> <artifactId>s 阅读全文
posted @ 2018-07-11 21:51 别动我的猫 阅读(511) 评论(0) 推荐(0) 编辑
摘要: ==一般用于比较内存地址,equals()用于比较Object的值,注意int用equals()是会报错的。Integer i=1Integer k=1i.equals(k)=truei==k=truei.intValue()==k.intValue()=true Integer l=129Inte 阅读全文
posted @ 2018-07-11 21:17 别动我的猫 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 本文转自https://blog.csdn.net/chen77716/article/details/5695893 最近因项目存在内存泄漏,故进行大规模的JVM性能调优 , 现把经验做一记录。 一、JVM内存模型及垃圾收集算法 1.根据Java虚拟机规范,JVM将内存划分为: New(年轻代) 阅读全文
posted @ 2018-07-11 20:08 别动我的猫 阅读(139) 评论(0) 推荐(0) 编辑