摘要: /** * 判断姓名字符长度 * 字符串为空返回0;有中文返回中文字符数;无中文返回2 * @param CustomerSn * @return */ private Integer getNameLength(Integer CustomerSn){ Integer sealWidth = 32; Cu... 阅读全文
posted @ 2017-08-08 17:47 MIC2016 阅读(19899) 评论(0) 推荐(0) 编辑
摘要: 1、卸载系统自带的jdk 1.1、查看该操作系统上是否已经安装了jdk [root@xhTest-1 ~]# rpm -qa | grep jdk 1.2、删除系统自带的jdk [root@xhTest-1 ~]# rpm -e --nodeps java-1.6.0-openjdk-1.6.0.0 阅读全文
posted @ 2017-07-10 16:02 MIC2016 阅读(1623) 评论(0) 推荐(0) 编辑
摘要: 1、准备工作 1.1、yum安装部分工具 1)yum -y install vim 2)yum -y install wget 3)yum -y install gcc 4)yum -y install make 5)yum -y install gcc-c++ (用于编译prce) 1.2、下载A 阅读全文
posted @ 2017-07-07 11:17 MIC2016 阅读(1615) 评论(0) 推荐(0) 编辑
摘要: 1、卸载系统自带的MySql 1.1、查看该操作系统上是否已经安装了mysql数据库 [root@xhTest-1 ~]# rpm -qa | grep mysql 1.2、删除原mysql数据库 1.2.1、普通删除模式 [root@xhTest-1 ~]# rpm -e mysql-libs-5 阅读全文
posted @ 2017-07-04 18:03 MIC2016 阅读(599) 评论(0) 推荐(0) 编辑
摘要: 1、修饰符类型 1.1、访问权限修饰符 public,protected,default,private 1.1.1、public:公共类,可以被工程内任何对象及方法访问 1.1.2、protected:同包或者子类对象可以访问 1.1.3、default:同包访问(default是“默认”,而且不 阅读全文
posted @ 2017-04-26 11:46 MIC2016 阅读(186) 评论(0) 推荐(0) 编辑
摘要: log4j.rootLogger=INFO,Everyday,SysOutlog4j.logger.org.hibernate.SQL=trace log4j.logger.org.hibernate.type=trace #for consolelog4j.appender.SysOut=org. 阅读全文
posted @ 2017-04-26 11:30 MIC2016 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 1.jar包 1.1.slf4j-api-1.6.1.jar 1.2.ehcache-2.7.0.jar 1.3.spring-core-3.2.0.RELEASE.jar 1.4.spring-context-3.2.0.RELEASE.jar 2.ehcache.xml 3.springBean 阅读全文
posted @ 2017-02-21 14:33 MIC2016 阅读(3208) 评论(0) 推荐(0) 编辑
摘要: package com.shy.ehcache; import net.sf.ehcache.Cache; import net.sf.ehcache.CacheManager; import net.sf.ehcache.Element; public class EhcacheDemo { public static void main(String[] args) {... 阅读全文
posted @ 2017-02-21 10:07 MIC2016 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 一、将 Ehcache.xml 放到 classpath 下 二、整合配置 在 hibernate 数据库连接配置文件中新增如下配置 三、在需要缓存对象的映射文件中添加参数 配置完成可根据项目实际情况进行测试 阅读全文
posted @ 2017-02-15 13:26 MIC2016 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 1.配置样例 2.属性说明 2.1.diskStore 指定数据存储位置,可指定磁盘中的文件夹位置。样例中配置位置为“d:/ehcache/” 2.2.defaultCache 默认缓存配置 2.3.cache 指定对象的缓存配置,其中 name 属性为指定缓存的名称(必须唯一) 2.4.配置属性中 阅读全文
posted @ 2017-02-14 13:35 MIC2016 阅读(7214) 评论(0) 推荐(1) 编辑