研发
欢欢的小幸运
这个作者很懒,什么都没留下…
展开
-
Spring MVC 在前端utf-8往后端传参数乱码处理
// 此处是设置编码 try { nameOrType = new String(nameOrType.getBytes("8859_1"), "utf8"); } catch (UnsupportedEncodingException e1) { log.error("编码转换异常,原因如下:"原创 2017-03-31 15:35:15 · 395 阅读 · 0 评论 -
org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apac
研发原创 2017-03-25 14:43:28 · 309 阅读 · 0 评论 -
在tomcat里面配置 maven项目
org.apache.tomcat.maven tomcat7-maven-plugin 2.2 http://localhost:8080/manager/text原创 2017-03-25 14:47:25 · 324 阅读 · 0 评论 -
改变一个list<Map<String,Object>>,并给他重新赋值,不能使用新循环,要使用旧循环
customList = customerDao.selRcodByCarNo("苏EG08P9", "3"); int nn = customList.size(); if(null != customList && nn>0){ Map mmp = null;转载 2017-11-01 14:34:40 · 4456 阅读 · 0 评论 -
字符串日期传值问题
and date_format(create_time,'%Y-%m')=#{date,jdbcType=VARCHAR}在参数后面加: ,jdbcType=VARCHAR原创 2018-01-31 16:34:18 · 471 阅读 · 0 评论 -
mysql in 子查询无效问题
1. 无效select * from term_info where 1 = 1 ANDcompany_no = 2and term_no not in ( select GROUP_CONCAT(term_no) from p_info where company_no = 2 and id != 1 )2. 有效select * f原创 2018-02-01 12:04:12 · 2032 阅读 · 2 评论 -
可以在SQL语句中加入 binary来区分大小写
Mysql默认查询是不分大小写的,可以在SQL语句中加入 binary来区分大小写;BINARY不是函数,是类型转换运算符,它用来强制它后面的字符串为一个二进制字符串,可以理解为在字符串比较的时候区分大小写例如 :select * from `sys_user` where binary loginno = 'qqq'原创 2018-02-01 12:05:14 · 7704 阅读 · 1 评论 -
org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apac
处理: org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLVmaven项目在tomcat下运行缺少jstl包,将 C:\Users\sxzichen\.m2\reposit原创 2018-02-01 12:05:39 · 1279 阅读 · 0 评论 -
mysql in 子查询无效问题
1. 无效select * from term_info where 1 = 1 ANDcompany_no = 2and term_no not in ( select GROUP_CONCAT(term_no) from p_info where company_no = 2 and id != 1 )2. 有效select *原创 2018-01-30 15:09:22 · 2438 阅读 · 0 评论