01 2014 档案

摘要:1、显示集合的大小:${fn:length(cars) } 阅读全文
posted @ 2014-01-27 12:09 prison 阅读(166) 评论(0) 推荐(0) 编辑
摘要:1、 阅读全文
posted @ 2014-01-23 15:44 prison 阅读(199) 评论(0) 推荐(0) 编辑
摘要:1、在buildpath中选择 maven默认的编译类路径是target/classes下 阅读全文
posted @ 2014-01-23 11:02 prison 阅读(317) 评论(0) 推荐(0) 编辑
摘要:1、security中的securityMetadataSource拦截 再到AccessDecisionManager。如果securityMetadataSource类中的getAttributes方法返回的是null,则不会进入AccessDecisionManager中。注意: 1 public Collection getAttributes(Object object) 2 throws IllegalArgumentException { 3 String requestUrl = ((FilterInvocation) object).g... 阅读全文
posted @ 2014-01-23 10:48 prison 阅读(207) 评论(0) 推荐(0) 编辑
摘要:1、 1 在相应的pom映射关系中 找到他所映射的父类jar 然后添加 2 3 org.springmodules 4 spring-modules-validation 5 0.8 6 7 8 9 org.springframework10 spring11 12 13 阅读全文
posted @ 2014-01-21 09:56 prison 阅读(732) 评论(0) 推荐(0) 编辑
摘要:1 /* 2 * 解析Json得到数组信息 3 */ 4 public BrandData analyzeJson(String json){ 5 if(json==null){ 6 return null; 7 } 8 try { 9 JsonMapper mapper = JsonMapper.nonDefaultMapper();10 return mapper.fromJson(json, BrandData[].class)[0];11... 阅读全文
posted @ 2014-01-20 16:25 prison 阅读(272) 评论(0) 推荐(0) 编辑
摘要:1、模糊查询表名称:Select * From sysobjects Where name like '%legalize%'2、查询表的字段信息select * from information_schema.columns where table_name='tab_sLegalize'3、查询text的长度:select LEN(cast(fld_Introduction as varchar )),fld_Introduction from tab_sLegalize 阅读全文
posted @ 2014-01-15 10:27 prison 阅读(165) 评论(0) 推荐(0) 编辑
摘要:1、maven错误提示及解决方法:maven install 出现错误提示: Build errors for carmall-manager; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.3:enforce (enforce-banned-dependencies) on project carmall-manager: Execution enforce-banned-depend 阅读全文
posted @ 2014-01-14 17:53 prison 阅读(3011) 评论(0) 推荐(0) 编辑
摘要:1、mybatis的使用之jdbcType在insert的时候对于一些数据库中可以为空的值要指定jdbcType。 对于时间类型,如果只记录年月日,jdbcType即可指定为Date。如果需要记录时分秒,则需要指定jdbcType为TIMESTAMP类型。 阅读全文
posted @ 2014-01-14 14:48 prison 阅读(140) 评论(0) 推荐(0) 编辑
摘要:1、安装zhcon的时候运行./configure 会出现configure:error:C++ preprocessor"/lib/cpp"fails sanity check 错误 是缺少基本的库造成的。解决方法:#sudo apt-get install build-essential这里面带有很多其他的基本库,为以后安装软件做基础。 阅读全文
posted @ 2014-01-14 14:29 prison 阅读(116) 评论(0) 推荐(0) 编辑
摘要:1、jar包零散的散落在根目录:view - java - package exploer2、spring等配置文件出现标题红叉:window-proper-validate 去掉xml validate3、Eclipse中修改注释中@authorWindow-->Preferences-->Java-->Code Style-->Code Templates(Window--Preferences--java--代码样式--代码模块 --注释--类型)点击Comments(1)找到Types 然后双击填入以下几个东西即可,然后在新建类的时候在Generate comm 阅读全文
posted @ 2014-01-14 11:40 prison 阅读(166) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示