摘要: Class.isAssignableFrom()是用来判断一个类Class1和另一个类Class2是否相同或是另一个类的子类或接口。 格式为: Class1.isAssignableFrom(Class2) 调用者和参数都是java.lang.Class类型。 而instanceof是用来判断一个对 阅读全文
posted @ 2017-10-20 16:39 developer_os 阅读(201) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/wanyuan8/archive/2011/11/09/2243483.html 阅读全文
posted @ 2017-10-17 14:29 developer_os 阅读(269) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/ice5/articles/1187199.html T-SQL 字符串前加 N 是什么意思 @strSql NVARCHAR(MAX) = N'', 比如 select @status = N'stopped' 那么其中的字符串 stopped 前面为 阅读全文
posted @ 2017-10-17 14:20 developer_os 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 1:SET XACT_ABORT ON 语法 SET XACT_ABORT { ON | OFF } 注释 当 SET XACT_ABORT 为 ON 时,如果 Transact-SQL 语句产生运行时错误,整个事务将终止并回滚。为 OFF 时,只回滚产生错误的 Transact-SQL 语句,而事 阅读全文
posted @ 2017-10-17 14:17 developer_os 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 1.以http协议读取网络中的xml//basePath=http://xxx.com/xxx/xxx/{0}.xml";String strUrl = MessageFormat.format(basePath, cid);//将{0}替换成cidURL url = new URL(strUrl) 阅读全文
posted @ 2017-09-26 10:43 developer_os 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 昨天发现一个问题。2张表中只有百十来条数据。然后图方便使用了子查询,没有使用关联查询。里面还用了in ,没有使用exists。就这方面做个总结。 阅读全文
posted @ 2017-09-15 09:48 developer_os 阅读(450) 评论(0) 推荐(0) 编辑
摘要: public void Send() throws Exception { Transport transport = null; try { if (StringUtil.isBlank(this.host)) { throw new NetException(6002); } if (Strin 阅读全文
posted @ 2017-09-11 10:44 developer_os 阅读(198) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/u014316462/article/details/52241685 阅读全文
posted @ 2017-09-07 11:25 developer_os 阅读(207) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/pipi-changing/p/5697481.html 1. cron表达式格式: {秒数} {分钟} {小时} {日期} {月份} {星期} {年份(可为空)} 2. cron表达式各占位符解释: {秒数} ==> 允许值范围: 0~59 ,不允许为 阅读全文
posted @ 2017-08-30 13:56 developer_os 阅读(679) 评论(0) 推荐(1) 编辑
摘要: 不能将java.util.Date直接装到数据库,必须将他转化为java.sql.Date类型类似的东西,然后才能装进去。 但java.sql.Date没有 时分秒。所以在需要做日志的场景是不行。 所以2的地方转化过存到数据看就没有时分秒了。 用1的方法可以保留时分秒。 阅读全文
posted @ 2017-08-29 15:54 developer_os 阅读(155) 评论(0) 推荐(0) 编辑