Fork me on GitHub
摘要: 两种方式,一个是在数据库查询的时候就截取,另一个就是在使用的时候截取。1.数据库select date_format(日期字段,’%Y-%m-%d’) as ‘日期’ from test2.java程序SimpleDateFormat dateFm = new SimpleDateFormat("y... 阅读全文
posted @ 2014-08-07 00:57 lingfeng95 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 提示:原网站已由百度转码,以便在移动设备上查看。第七城市(Portal 开发读书笔记)Spring Portlet MVC 测试Controller2012-04-28 16:32:44 - - 点击数: 175测试Spring Portlet MVC 中的Controller有两种方法,一种是用m... 阅读全文
posted @ 2014-08-06 00:49 lingfeng95 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 技巧一:使用正确的方法 无论你是使用一个简单或是高级的Google搜索,在此都存在你应该使用的某种可靠的方法。遵循适当的方法你就能获得非常准确的结果;要是忽略这条建议的话,你也许就会看到大量不相关的结果或是缺乏你想要的相关结果。 虽然有很多不同(且同样有效的)方法用于网络搜索,我保证这个特别的方... 阅读全文
posted @ 2014-08-03 01:16 lingfeng95 阅读(361) 评论(0) 推荐(0) 编辑
摘要: Mybatisxml配置 ... 阅读全文
posted @ 2014-08-03 01:15 lingfeng95 阅读(268) 评论(0) 推荐(0) 编辑
摘要: public void selectCommentsByBlogTest() { SqlSession session = Util.getSqlSessionFactory().openSession(); CommentMapper commentMapper = sessi... 阅读全文
posted @ 2014-08-01 01:03 lingfeng95 阅读(264) 评论(0) 推荐(0) 编辑
摘要: /** SpringUtil.java{{IS_NOTE Purpose: Description: History: Thu Jun 1 13:53:53 2006, Created by henrichen}}IS_NOT... 阅读全文
posted @ 2014-07-30 00:29 lingfeng95 阅读(686) 评论(0) 推荐(0) 编辑
摘要: web.xml的配置 s3h3 contextConfigLocation classpath:*Context.xml org.springframework.web.context.Cont... 阅读全文
posted @ 2014-07-30 00:27 lingfeng95 阅读(187) 评论(0) 推荐(0) 编辑
摘要: /* 1.是否以某字符串结尾 endsWith(theStr,endStr) @param theStr:要判断的字符串 @param endStr:以此字符串结尾 @return boolean; */ function endsWith(theStr,endStr) { var theStrLength... 阅读全文
posted @ 2014-07-29 01:13 lingfeng95 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 下面将介绍使用spring+mybatis的开发样例: 首先,笔者创建的是一个maven工程,在开发先先导入相关的依赖jar: pom.xml: junit junit 4.11 test ... 阅读全文
posted @ 2014-07-29 01:02 lingfeng95 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 只要有接口,就会有参数的校验,目前开源的校验框架已经非常多了,不过不得不提一下Oval。OVal 是一个可扩展的Java对象数据验证框架,验证的规则可以通过配置文件、Annotation、POJOs 进行设定。可以使用纯 Java 语言、JavaScript 、Groovy 、BeanShell 等... 阅读全文
posted @ 2014-07-29 00:46 lingfeng95 阅读(7114) 评论(0) 推荐(1) 编辑