2019年1月16日

摘要: 做项目中 : map 为Map<String,Object> a.setmoney(new BigDecimal((String)map.get("money"))); 这么写 一直报错 a.setmoney(new BigDecimal(map.get("moeny").toString())); 阅读全文
posted @ 2019-01-16 12:51 xiaohehe2 阅读(120) 评论(0) 推荐(0) 编辑

2018年7月27日

摘要: 根据当前请求的特征,判断该请求是否来自手机终端,主要检测特殊的头信息,以及user-Agent这个header public static boolean isMobileDevice(HttpServletRequest request){ boolean b = false; boolean p 阅读全文
posted @ 2018-07-27 14:32 xiaohehe2 阅读(678) 评论(0) 推荐(0) 编辑
摘要: public static String getRealIpAddr(HttpServletRequest request) { String ip = request.getHeader("X-Real-IP"); if ((ip == null) || (ip.length() == 0) || 阅读全文
posted @ 2018-07-27 14:27 xiaohehe2 阅读(140) 评论(0) 推荐(0) 编辑

2017年4月17日

摘要: html页面: js: 阅读全文
posted @ 2017-04-17 16:43 xiaohehe2 阅读(161) 评论(0) 推荐(0) 编辑

2017年3月27日

摘要: 解决方案:在你的工作目录中,有一个.metadata目录,里面是工作区及各插件的信息,删除此目录可以解决问题。保险起见,先剪切到另一地方。再重启启动。 阅读全文
posted @ 2017-03-27 09:55 xiaohehe2 阅读(205) 评论(0) 推荐(0) 编辑

2016年11月22日

摘要: eg: select * from user <trim prefix="WHERE" prefixoverride="AND |OR"> <if test="name != null "> AND name=#{name}</if> <if test="gender != null "> AND 阅读全文
posted @ 2016-11-22 15:35 xiaohehe2 阅读(190) 评论(0) 推荐(0) 编辑

2016年9月27日

摘要: END 阅读全文
posted @ 2016-09-27 22:03 xiaohehe2 阅读(77) 评论(0) 推荐(0) 编辑

2016年9月18日

摘要: 1、查看 apache服务器状态:service hpptd status; 使用service httpd stop可以停止httpd 使用service httpd start 可以启动httpd 使用service httpd stop可以停止httpd 使用service httpd sta 阅读全文
posted @ 2016-09-18 09:39 xiaohehe2 阅读(168) 评论(0) 推荐(0) 编辑

2016年9月11日

摘要: eg: 1、现在给定一个项目包的结构: com.yk.controller com.yk.service 2、在SpringMVC.XML有以下的配置: 《!--扫描@controller注解--》 <context:component-scan base-package="com.yk.contr 阅读全文
posted @ 2016-09-11 22:21 xiaohehe2 阅读(4785) 评论(1) 推荐(0) 编辑

2016年9月5日

摘要: 在tomcat中复制webapps目录,并重命名: 2.修改tomcat/conf/server.xml文件: 复制一个<service></service> 阅读全文
posted @ 2016-09-05 17:51 xiaohehe2 阅读(173) 评论(0) 推荐(0) 编辑

导航