摘要: /** * 校验日期格式是否为yyyy-MM-dd * @param timeStr 正确返回true * @return */ public static boolean valiDateFormat(String timeStr) { String format = "((19|20)[0-9]{2})-(0[1-9]|1[01... 阅读全文
posted @ 2017-12-12 14:18 重拾热情的小程序员 阅读(2551) 评论(0) 推荐(0) 编辑
摘要: 1 private String getRecommendCount(BaseInfo baseInfo) throws Exception{ 2 ExecutorService exec = Executors.newCachedThreadPool(); 3 // int timeout = 5; // 访问接口的时间限制 4 Strin... 阅读全文
posted @ 2017-12-04 14:08 重拾热情的小程序员 阅读(7904) 评论(1) 推荐(0) 编辑
摘要: 问题的产生是我执行load命令,装载一个1100万行数据的文件到数据库中,结果装载了570万条之后表空间就不够了。tablespace的状态为BACKUP PENDING。 此时想drop table,报SQL0290N 不允许访问表空间。 解决方法: 执行命令db2 “backup db samp 阅读全文
posted @ 2017-08-29 17:19 重拾热情的小程序员 阅读(1238) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) throws Exception { String str = "WERUIuy%^*&5467"; int i = checkStrong(str); if(i= 48 && i = 65 && i = 97 && i >>= 1; } ... 阅读全文
posted @ 2017-05-23 09:29 重拾热情的小程序员 阅读(666) 评论(0) 推荐(0) 编辑
摘要: 使用maven构建spring security的一个demo时出现了这个问题,网上找了很长时间,很多答案都不适合自己。1.一开始根据提示以为是xsd和jar包的版本冲突问题,参考了这篇文章 http://www.baeldung.com/unable-to-locate-spring-namesp... 阅读全文
posted @ 2015-12-11 11:41 重拾热情的小程序员 阅读(5043) 评论(1) 推荐(2) 编辑