会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Orc_Warrior
偶尔清醒的惫懒人士。常问天:吾辈何以为战!
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2017年1月12日
随机实例,随机值
摘要: /** * 随机项 * @author healy * * @param <E> */ public class RandomEntry<E> { /**概率,单位%%(万分之)*/ private int probability; /**概率对应的物品*/ private E entry; pub
阅读全文
posted @ 2017-01-12 16:48 Orc_Warrior
阅读(177)
评论(0)
推荐(0)
2017年1月11日
Spring4笔记
摘要: Spring提供了两种类型的IOC容器实现,BeanFactory和ApplicationContext,前者面向Spring框架本身,后者变相开发者。 ApplicationContext提供了两种实现: ClassPathXmlApplicationContext:从 类路径下加载配置文件 Fi
阅读全文
posted @ 2017-01-11 10:19 Orc_Warrior
阅读(153)
评论(0)
推荐(0)
2017年1月5日
struts2笔记(3)
摘要: 关于回显: 如果是int型,默认就会回显为0,如果不想让回显,则Integer就好 //**************************************声明式验证************************************** 如果配置文件xml没有提示,需要重新关联tdt:
阅读全文
posted @ 2017-01-05 16:07 Orc_Warrior
阅读(154)
评论(0)
推荐(0)
2017年1月4日
struts2笔记(2)
摘要: 1 <context-param> 2 <param-name>pattern</param-name> 3 <param-value>yyyy-MM-dd hh:mm:ss</param-value> 4 </context-param> 5 //获取当前 WEB 应用的初始化参数 pattern
阅读全文
posted @ 2017-01-04 09:28 Orc_Warrior
阅读(172)
评论(0)
推荐(0)
2016年12月30日
获取文本的编码类型(from logparse)
摘要: 1 import java.io.BufferedReader; 2 import java.io.File; 3 import java.io.FileInputStream; 4 import java.io.FileNotFoundException; 5 import java.io.IOE
阅读全文
posted @ 2016-12-30 14:28 Orc_Warrior
阅读(201)
评论(0)
推荐(0)
FileUtil(from logparser)
摘要: 1 import java.io.BufferedReader; 2 import java.io.BufferedWriter; 3 import java.io.ByteArrayOutputStream; 4 import java.io.File; 5 import java.io.File
阅读全文
posted @ 2016-12-30 14:18 Orc_Warrior
阅读(175)
评论(0)
推荐(0)
DateUtil(SimpleDateFormat)
摘要: import java.util.Calendar; import java.util.Date; import java.text.SimpleDateFormat; public class DateUtil { private static SimpleDateFormat format1; private static SimpleDateFormat format2;...
阅读全文
posted @ 2016-12-30 10:40 Orc_Warrior
阅读(488)
评论(0)
推荐(0)
2016年12月29日
struts2笔记
摘要: Struts2 中, HTML 表单将被直接映射到一个 POJO,通过params拦截器,类中定义对应属性,及对应set方法即可。 Struts2 中,任何一个POJO都可以是一个action类。 Struts2 会为每一个 HTTP 请求创建一个新的 Action 类的实例,即 Action 不是
阅读全文
posted @ 2016-12-29 17:42 Orc_Warrior
阅读(205)
评论(0)
推荐(0)
排序map
摘要: 1、根据map的值,升序排序 1 Map<String, Integer> map = new TreeMap<String, Integer>(); 2 map.put("d", 1); 3 map.put("b", 2); 4 map.put("a", 3); 5 map.put("c", 4)
阅读全文
posted @ 2016-12-29 16:33 Orc_Warrior
阅读(257)
评论(0)
推荐(0)
2016年12月27日
HttpUtil
摘要: 1、发送doPost请求,在web那边使用request.setCharacterEncoding("UTF-8");保证中文不乱码,不需要第三方jar包 1 public static String sendPost(String url, String param) { 2 PrintWrite
阅读全文
posted @ 2016-12-27 10:03 Orc_Warrior
阅读(162)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告