摘要: 遍历结果集1-n的时候出现 org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 5 这个异常; 我的 阅读全文
posted @ 2018-09-13 23:18 谁在逆水行舟 阅读(1403) 评论(0) 推荐(0) 编辑
摘要: 1、基本方式的读取: 建立一个properties文件有一个键值对:aa=123 Properties pro = new Properties(); pro.load(new FileInputStream("properties/conf.properties")); String value 阅读全文
posted @ 2018-09-13 09:52 谁在逆水行舟 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 1、建立一个抽象类httpfilter实现filter接口 里面实现获取FilterConfig()和 getServletContext()方法; 建一个dofilter(HttpServletRequest request,HttpServletResponse response,FilterC 阅读全文
posted @ 2018-09-13 09:33 谁在逆水行舟 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 这里是基于tomcat服务器 1、post方式的乱码 乱码的原因主要是存入的编码方式和取出的编码方式不同,在就是不支持中文编码; 一般都使用“utf-8”的编码格式进行存取和显示; post方式进行请求时,数据是放入请求体之中,可以使用以下方式解决乱码问题: request.setCharacter 阅读全文
posted @ 2018-09-13 09:14 谁在逆水行舟 阅读(115) 评论(0) 推荐(0) 编辑