2016年6月7日

摘要: 在spring初始化时,可以使用Properties配置器把properties文件装载到Spring的上下文中。 Xml代码 ... xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation=“ 阅读全文
posted @ 2016-06-07 09:39 懿懿 阅读(1959) 评论(1) 推荐(0) 编辑

2016年2月5日

摘要: 就类似博客园这种: 有两种实现方式 设置图片尺寸大小 第一种:直接做一个favicon.ico 图标放在项目的根目录里就行 做好的图片名称必须是叫favicon.ico 再将改图片放置在项目跟路径下即可 第二种:直接在网站页面中加代码调用 在网页HEAD标记中添加如下代码: <HEAD> <LINK 阅读全文
posted @ 2016-02-05 15:14 懿懿 阅读(387) 评论(0) 推荐(0) 编辑

2016年1月28日

摘要: 阅读目录 1. 工程目录结构整理清楚 2. 引入依赖包 3. 配置数据库连接属性 4. 配置spring配置文件 5. java代码编写(model,dao,service层代码) 6. mybatis配置 7. junit测试插入功能 8. springMVC模块搭建 9. log4j日志记录搭建 阅读全文
posted @ 2016-01-28 18:28 懿懿 阅读(350) 评论(0) 推荐(0) 编辑

2016年1月26日

摘要: package com.cc.hkjc.util;import java.util.UUID;/*** 字符串工具类* * @author:匿名* */public class UUIDUtils { /** * 获得32字符长度的UUID值 * * @return */ public s... 阅读全文
posted @ 2016-01-26 22:09 懿懿 阅读(264) 评论(0) 推荐(0) 编辑
摘要: package com.cc.hkjc.util;import java.math.BigInteger;import java.security.MessageDigest;import java.security.NoSuchAlgorithmException;public class MD5... 阅读全文
posted @ 2016-01-26 22:08 懿懿 阅读(192) 评论(0) 推荐(0) 编辑
摘要: package com.cc.hkjc.util;import java.util.Random;public class RandomUtils { /** * 获取count个随机数 * @param count 随机数个数 * @return */ public static String g... 阅读全文
posted @ 2016-01-26 22:08 懿懿 阅读(630) 评论(0) 推荐(0) 编辑
摘要: package com.cc.hkjc.util;import java.net.InetAddress;import java.net.UnknownHostException;import javax.servlet.http.HttpServletRequest;import javax.se... 阅读全文
posted @ 2016-01-26 22:07 懿懿 阅读(250) 评论(1) 推荐(0) 编辑
摘要: package com.cc.hkjc.util;import java.security.MessageDigest;import java.security.NoSuchAlgorithmException;public class MD5Util { private final static ... 阅读全文
posted @ 2016-01-26 22:07 懿懿 阅读(200) 评论(0) 推荐(0) 编辑
摘要: package com.cc.hkjc.util;import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.Date;import java... 阅读全文
posted @ 2016-01-26 22:06 懿懿 阅读(676) 评论(0) 推荐(0) 编辑
摘要: // On creation of a UUID object, set it's initial valuefunction UUID(){ this.id = this.createUUID();}// When asked what this Object is, lie and return... 阅读全文
posted @ 2016-01-26 22:05 懿懿 阅读(1026) 评论(0) 推荐(0) 编辑

导航