04 2014 档案
占位符
摘要:目前只会一种比如:String str="我是{0},我来自{1}";str=str.replace("{0}","bruceLee");str=str.replcae("{1}","chn");syso(str); 阅读全文
posted @ 2014-04-30 00:51 xxyyjj 阅读(133) 评论(0) 推荐(0)
判断是否存在
摘要:没有符合条件的string name先用遍历,拼成1个字符串然后用indexof去找有没有,没有加入条件但是有个问题,是之前的content为null的时候,name一会为null如何把这2个总结到一块 阅读全文
posted @ 2014-04-28 23:56 xxyyjj 阅读(136) 评论(0) 推荐(0)
jqueryeasyui
摘要:用户名: 密码: var loginReg;$(function(){loginReg=$('#logreg').dialog({ title: '登录', width: 400, height: 200, closed: false, cache: false... 阅读全文
posted @ 2014-04-17 01:03 xxyyjj 阅读(176) 评论(0) 推荐(0)
修改代码
摘要:现在的工作内容:以前的代码,现在需求变了,我就把以前的代码修改掉,有没有哪个设计模式可以改变一下呢,变的只是字段,而且项目小,用设计模式,工作量会更大 阅读全文
posted @ 2014-04-16 23:20 xxyyjj 阅读(134) 评论(0) 推荐(0)
myeclipse copy 项目后的修改
摘要:右击当前项目-properties;然后敲web把 Web Context-root的名字改成项目名称 阅读全文
posted @ 2014-04-15 23:41 xxyyjj 阅读(156) 评论(0) 推荐(0)
sql
摘要:1,在做查询开发时候;比如我没有任何条件的时候,就把所有数据库的比如student都LIST出来sql"from Student";但是如果我不想在多谢一个方法来做查询的话sql"from Student where 1+1";String subsql2,string拼出code号3,spring... 阅读全文
posted @ 2014-04-15 22:17 xxyyjj 阅读(131) 评论(0) 推荐(0)
springmvc+hibernate报错
摘要:明明是跟别人的jar包一样,怎么我的就是不行com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure转载别人的http://ilyljc007.blog.163.com/blog/stat... 阅读全文
posted @ 2014-04-15 01:29 xxyyjj 阅读(311) 评论(0) 推荐(0)