随笔分类 -  SpringMVC

摘要:把项目目录下的.idea删除,再重启IDEA打开项目就行了 阅读全文
posted @ 2021-06-18 19:00 武卡卡 阅读(353) 评论(0) 推荐(0) 编辑
摘要:pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2021-06-15 19:39 武卡卡 阅读(109) 评论(0) 推荐(0) 编辑
摘要:-Dfile.encoding=UTF-8 阅读全文
posted @ 2021-06-12 16:16 武卡卡 阅读(349) 评论(0) 推荐(0) 编辑
摘要:<bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter"></bean> 阅读全文
posted @ 2021-06-12 13:25 武卡卡 阅读(508) 评论(0) 推荐(0) 编辑
摘要:springmvc-config.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/20 阅读全文
posted @ 2021-06-10 14:31 武卡卡 阅读(1638) 评论(0) 推荐(0) 编辑
摘要:<!-- 指定响应体返回类型和编码 , 解决乱码????的问题 --> <mvc:annotation-driven> <mvc:message-converters register-defaults="true"> <bean class="org.springframework.http.co 阅读全文
posted @ 2021-06-01 15:50 武卡卡 阅读(184) 评论(0) 推荐(0) 编辑
摘要:静态资源过滤 spring-config.xml <!-- 3,(1)让Spring MVC不处理静态资源 。(2)加载静态资源,也称为资源过滤 --> <mvc:default-servlet-handler /> 前端加载 jsp <%-- ${pageContext.request.conte 阅读全文
posted @ 2021-06-01 10:28 武卡卡 阅读(113) 评论(0) 推荐(0) 编辑

喜欢请打赏

扫描二维码打赏

支付宝打赏

点击右上角即可分享
微信分享提示