1.10 MVC配置
1.10.1 开启MVC Configuration
@Configuration
@EnableWebMvc
public class WebConfig {
}<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
https://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/mvc
https://www.springframework.org/schema/mvc/spring-mvc.xsd">
<mvc:annotation-driven/>
</beans>1.10.2 MVC Config API
1.10.3 Type Conversion
1.10.4 Validation
1.10.5 Interceptors
1.10.6 Content Types
1.10.7 Message Converters
1.10.8 View Controllers
1.10.9 View Resolvers
1.10.10 Static Resources
1.10.11 Default Servlet
1.10.12 Path Matching
1.10.13 Advanced Java Config
1.10.14 Advanced XML Config
最后更新于
这有帮助吗?