![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
chenyuxuan360
年轻人
展开
-
request,response,ssh中文乱码解决方案
(1)request中有常见的两种提交方式post,get提交解决中文乱码 1.post提交--只要在前面加上:request.setCharacterEncoding("utf-8") 2.get提交----需要将获取的参数进行编码转换, (2) response解决中文乱码----response.setContentType("text/ht...原创 2018-07-24 14:38:00 · 422 阅读 · 1 评论 -
Hibernate、Spring、Struts、MyBatis引入约束头
hibernate的约束 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-...原创 2018-08-14 10:53:46 · 187 阅读 · 0 评论 -
ssm框架搭建步骤
1.导jar包 2.配置web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="htt原创 2018-09-04 17:11:59 · 161 阅读 · 0 评论