摘要: 关于@ExceptionHandler注解不详细说明,次记录仅供参考,直接贴项目中的代码用法,不喜勿喷,不足之处请指点。 Controller: 1.controller继承异常基类BaseController BException: 2.自定义异常BException,继承RuntimeExcep 阅读全文
posted @ 2018-05-07 16:42 像艳遇一样忧伤c 阅读(6379) 评论(0) 推荐(0) 编辑
摘要: 问题:如何实现beanutils.copyproperties不复制某些字段? 描述: beanutils.copyproperties不复制某些字段? BeanUtils.copyProperties(information, informationData); information里面的myc 阅读全文
posted @ 2018-04-11 18:42 像艳遇一样忧伤c 阅读(2665) 评论(0) 推荐(0) 编辑
摘要: 声明Bean的注解: @Component : 组件,没有明确的角色 @Service : 在业务逻辑层(service层)使用 @Repository : 在数据访问层(dao层)使用. @Controller : 在展现层(MVC--SpringMVC)使用 注入Bean的注解: @Aautow 阅读全文
posted @ 2018-04-04 17:14 像艳遇一样忧伤c 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 第一种方法:(主要针对旧版的svn) 请看:http://www.cnblogs.com/bicker/p/3312394.html 第二种方法:对于新版的SVN 阅读全文
posted @ 2018-03-05 15:51 像艳遇一样忧伤c 阅读(150) 评论(0) 推荐(0) 编辑
摘要: (1)通配符: $("input[id^='code']");//id属性以code开始的所有input标签 $("input[id$='code']");//id属性以code结束的所有input标签 $("input[id*='code']");//id属性包含code的所有input标签 $( 阅读全文
posted @ 2018-02-08 17:41 像艳遇一样忧伤c 阅读(176) 评论(0) 推荐(0) 编辑
摘要: mysql str_to_date字符串转换为日期 mysql内置函数,在mysql里面利用str_to_date()把字符串转换为日期。 mysql内置函数,在mysql里面利用str_to_date()把字符串转换为日期。 例如:分隔符一致,年月日要一致 select str_to_date(' 阅读全文
posted @ 2018-01-08 16:43 像艳遇一样忧伤c 阅读(521) 评论(0) 推荐(0) 编辑
摘要: //外面是双引号,里面就是单引号 <if test="contactPhone != null and contactPhone!= '' "> contact_phone = #{contactPhone} </if> //外面是单引号,里面就是双引号 <if test='contactPhone 阅读全文
posted @ 2018-01-08 16:26 像艳遇一样忧伤c 阅读(2993) 评论(0) 推荐(0) 编辑
摘要: 1、选择器+遍历 $('div').each(function (i){ i就是索引值 this 表示获取遍历每一个dom对象 }); 2、选择器+遍历 $('div').each(function (index,domEle){ index就是索引值 domEle 表示获取遍历每一个dom对象 } 阅读全文
posted @ 2018-01-03 15:54 像艳遇一样忧伤c 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/backpacker/archive/2012/08/01/2619180.html Javascript 中可以动态添加 对象属性 结果:依次打印出 undefined, allen 也可用类似 EL (Expression Language) 阅读全文
posted @ 2018-01-03 15:45 像艳遇一样忧伤c 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1.var per = new Object(); 或 2.ar obj = {}; 或 3.var obj = {username:"allen", password:"123"}; 以上3种方式均可定义JavaScript对象(obj) per.name = 'zhangsan'; per.ag 阅读全文
posted @ 2018-01-03 15:38 像艳遇一样忧伤c 阅读(1165) 评论(0) 推荐(0) 编辑