随笔分类 -  SpringMVC

摘要:把项目目录下的.idea删除,再重启IDEA打开项目就行了 阅读全文
posted @ 2021-06-18 19:00 武卡卡 阅读(372) 评论(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 武卡卡 阅读(129) 评论(0) 推荐(0)
摘要:-Dfile.encoding=UTF-8 阅读全文
posted @ 2021-06-12 16:16 武卡卡 阅读(354) 评论(0) 推荐(0)
摘要:<bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter"></bean> 阅读全文
posted @ 2021-06-12 13:25 武卡卡 阅读(527) 评论(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 武卡卡 阅读(1706) 评论(0) 推荐(0)
摘要:<!-- 指定响应体返回类型和编码 , 解决乱码????的问题 --> <mvc:annotation-driven> <mvc:message-converters register-defaults="true"> <bean class="org.springframework.http.co 阅读全文
posted @ 2021-06-01 15:50 武卡卡 阅读(208) 评论(0) 推荐(0)
摘要:静态资源过滤 spring-config.xml <!-- 3,(1)让Spring MVC不处理静态资源 。(2)加载静态资源,也称为资源过滤 --> <mvc:default-servlet-handler /> 前端加载 jsp <%-- ${pageContext.request.conte 阅读全文
posted @ 2021-06-01 10:28 武卡卡 阅读(124) 评论(0) 推荐(0)