摘要: [支持main方法测试]ResourceBundle resourceBundle = ResourceBundle.getBundle("service"); String url = resourceBundle.getString("serviceid"); System.out.prin... 阅读全文
posted @ 2014-06-06 10:26 小四儿 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 最近在 研究 hibernate ,按照 官网的 例子 我动手开始研究 maven ,但是 在 compile 的时候 居然 报错了 [ERROR] 'dependencies.dependency.version' for org.hibernate:hibernate-core:jar is missing. @ line 18, column 15[ERROR] 'dependencies.dependency.version' for javax.servlet:servlet-api:jar is missing. @ line 25, column 阅读全文
posted @ 2013-12-27 16:58 小四儿 阅读(573) 评论(1) 推荐(0) 编辑
摘要: 1 //获取数据方法 2 public List tree(List list, String id, String state, 3 String[] str, GetTreeVoInterface getTree) { 4 ArrayList listTree = new ArrayList(); 5 //遍历原始数据 6 for (int i = list.size(); i > 0; i--) { 7 ListVo vo = list.get(i - 1); 8 ... 阅读全文
posted @ 2013-11-06 09:17 小四儿 阅读(317) 评论(0) 推荐(0) 编辑
摘要: select dateAdd(mm,1,0):1900-02-01 00:00:00.000select datediff(mm,0,getdate()):1350(这个是当前月份到 1900 年一月的 相差月份) 阅读全文
posted @ 2012-07-18 15:45 小四儿 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 最小化到系统托盘 阅读全文
posted @ 2012-06-11 17:32 小四儿 阅读(161) 评论(0) 推荐(0) 编辑
摘要: XML文件的读取和写入 阅读全文
posted @ 2012-06-11 17:32 小四儿 阅读(245) 评论(1) 推荐(1) 编辑
摘要: CDC Comms Interface 设备解决方案很多朋友都会碰到安装好驱动以下问题右键我的电脑---设备管理器---出现以下字样CDC Comms Interface 设备NOKIA N95 USB MODEM 设备提示错误"INF中服务安装段落无效"出现这个问题不是PC套件问题,不是线缆驱动问题,而是因为你用的简化版XP,或者丢失过系统文件为什么这么说?因为打开MDM的INF文件可以清楚的看到有mdmcpq.inf的条目,但是请搜索一下你的C:\windows\inf目录下有没有这个文件。。。。所以解决办法:在其他计算机上找到mdmcpq.inf拷到windows\i 阅读全文
posted @ 2012-05-31 18:48 小四儿 阅读(1083) 评论(0) 推荐(0) 编辑
摘要: 最常用的是 MessageBox.Show(“aa”); DialogResult bu = MessageBox.Show("是否最小化到托盘", "", MessageBoxButtons.YesNo); if (bu == DialogResult.Yes) 阅读全文
posted @ 2012-05-23 12:48 小四儿 阅读(254) 评论(0) 推荐(0) 编辑
摘要: ?select GETDATE() as '当前日期',DateName(year,GetDate()) as '年',DateName(month,GetDate()) as '月',DateName(day,GetDate()) as '日',DateName(dw,GetDate()) as '星期',DateName(week,GetDate()) as '周数',DateName(hour,GetDate()) as '时',DateName(minute,GetDate( 阅读全文
posted @ 2012-05-21 16:41 小四儿 阅读(640) 评论(0) 推荐(0) 编辑
摘要: 源代码 : this.setBounds(10,10,200,200);///<param name="X" >距左边的距离</param>///<param name="Y" >距上边的距离</param>///<param name="width" >面板宽度</param>///<param name="height" >面板高度</param><param name="this" > 阅读全文
posted @ 2012-05-10 11:17 小四儿 阅读(797) 评论(0) 推荐(0) 编辑