悠然哈哈哈

导航

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页

2016年5月24日 #

日期工具类

摘要: package cn.wsria.util.date; import java.sql.Time;import java.text.DateFormat;import java.text.ParseException;import java.text.SimpleDateFormat;import 阅读全文

posted @ 2016-05-24 12:19 悠然886 阅读(275) 评论(0) 推荐(0) 编辑

2016年5月3日 #

redis 部分操作

摘要: http://pan.baidu.com/s/1eRXdbUy 下载安装地址 打开一个cmd窗口,使用cd命令切换到指定目录(D:\ruanjian\redis\64bit)运行 redis-server.exe redis.conf 在打开一个cmd窗口 连接redis-cli -h 127.0. 阅读全文

posted @ 2016-05-03 11:18 悠然886 阅读(139) 评论(0) 推荐(0) 编辑

自动加载的两种办法

摘要: 1、spring 配置init-method方法 例子如下 spring-xml <context:annotation-config/> <bean id="dataProcessor" class="com.thread.DataProcessor" scope="singleton" init 阅读全文

posted @ 2016-05-03 10:00 悠然886 阅读(267) 评论(0) 推荐(0) 编辑

Cannot switch on a value of type String for source level below 1.7. Only convertible int values or enum variables are permitted

摘要: swith 字符串异常 解决:项目属性-Java Compiler-Compiler compliance level:改成1.7就OK了。 阅读全文

posted @ 2016-05-03 09:33 悠然886 阅读(832) 评论(0) 推荐(0) 编辑

2016年3月16日 #

Java 面试

摘要: /** * 小写转大写 * @param str * @return */ public static String toUpperCase(String str){ return str.toUpperCase(); } /** * 字符串反转 * @param str */ public sta 阅读全文

posted @ 2016-03-16 10:54 悠然886 阅读(178) 评论(0) 推荐(0) 编辑

2016年3月11日 #

Java 获取最近时间

摘要: public static String getStatetime() throws ParseException{ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Calendar c = Calendar.getInstanc 阅读全文

posted @ 2016-03-11 14:10 悠然886 阅读(408) 评论(0) 推荐(0) 编辑

2016年2月22日 #

Java 倒序输出

摘要: /* * 字符串abcdefg,要求按逆序输出为gfedcba */public class ReverseSort { public static String reverseSort(String str) { String str2 = ""; for (int i = str.length( 阅读全文

posted @ 2016-02-22 09:39 悠然886 阅读(659) 评论(0) 推荐(0) 编辑

2016年2月18日 #

java 排序算法

摘要: //冒泡 public static void bubbleSort(int[] numbers) { int temp; // 记录临时中间值 int size = numbers.length; // 数组大小 for (int i = 0; i base) && (j > start)) j--; ... 阅读全文

posted @ 2016-02-18 13:42 悠然886 阅读(211) 评论(0) 推荐(0) 编辑

2015年12月28日 #

图片预览

摘要: ... 阅读全文

posted @ 2015-12-28 13:44 悠然886 阅读(289) 评论(0) 推荐(0) 编辑

2015年12月25日 #

SSH三大框架的工作原理

摘要: Hibernate工作原理原理:1.通过Configuration().configure();读取并解析hibernate.cfg.xml配置文件2.由hibernate.cfg.xml中的读取并解析映射信息3.通过config.buildSessionFactory();//创建SessionF... 阅读全文

posted @ 2015-12-25 11:11 悠然886 阅读(489) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页