2017年3月27日

经典的json分包

摘要: //json格式分包 var LOGIN={ //初始化参数 init:{ name:$("#name").val(), pass:$("#pass").val() }, //校验参数 check:function(){ if(LOGIN.init.name==""){ return false; 阅读全文

posted @ 2017-03-27 13:55 老邱2 阅读(348) 评论(0) 推荐(0) 编辑

resful风格

摘要: @PathVariable请求参数,传到后台 阅读全文

posted @ 2017-03-27 13:26 老邱2 阅读(282) 评论(0) 推荐(0) 编辑

ajax跨域

摘要: Insert title here ok 阅读全文

posted @ 2017-03-27 13:14 老邱2 阅读(93) 评论(0) 推荐(0) 编辑

spring-redis集群配置

摘要: 该值 且 空闲连接>最大空闲连接数 时直接释放 --> ... 阅读全文

posted @ 2017-03-27 11:25 老邱2 阅读(2696) 评论(0) 推荐(0) 编辑

事物的传播行为

摘要: <!-- 通知 --> <tx:advice id="txAdvice" transaction-manager="transactionManager"> <tx:attributes> <!-- 传播行为 --> <tx:method name="save*" propagation="REQU 阅读全文

posted @ 2017-03-27 11:24 老邱2 阅读(155) 评论(0) 推荐(0) 编辑

mysql数据语句

摘要: 1.查询伪劣 select (@rowNum:=@rowNum+1) as rn; 阅读全文

posted @ 2017-03-27 11:22 老邱2 阅读(96) 评论(0) 推荐(0) 编辑

spring拦截器

摘要: 1.判断是不是ajax请 X-Requested-With: XMLHttpRequest request.getHeader("X-Requested-With")!=null&&request.getHeader("X-Requested-With").equels(XMLHttpRequest 阅读全文

posted @ 2017-03-27 10:37 老邱2 阅读(89) 评论(0) 推荐(0) 编辑

web.xml解析

摘要: <!-- 区分项目名称,防止默认重名 --> <context-param> <param-name>webAppRootKey</param-name> <param-value>cms_ybn_ms</param-value> </context-param> 阅读全文

posted @ 2017-03-27 10:01 老邱2 阅读(85) 评论(0) 推荐(0) 编辑

俩项目之间调用

摘要: 1.访问service的服务端service 注入service实现类 接口 2.跨项目访问service ${serviceUrl}/httpAccountService com.fz.ybn.intf... 阅读全文

posted @ 2017-03-27 10:00 老邱2 阅读(142) 评论(0) 推荐(0) 编辑

java获取系统字符编码

摘要: System.out.println(System.getProperty("file.encoding")); 阅读全文

posted @ 2017-03-27 09:09 老邱2 阅读(3343) 评论(0) 推荐(0) 编辑

导航