增加项目README.md
This commit is contained in:
@ -3,9 +3,8 @@ package com.heibaiying.webconfig;
|
||||
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
|
||||
|
||||
/**
|
||||
* @author : 罗祥
|
||||
* @author : heibaiying
|
||||
* @description : 等价于 web.xml 中配置前端控制器
|
||||
* @date :create in 2018/12/27
|
||||
*/
|
||||
public class DispatcherServletInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {
|
||||
|
||||
|
@ -10,9 +10,8 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||
import org.springframework.web.servlet.view.InternalResourceViewResolver;
|
||||
|
||||
/**
|
||||
* @author : 罗祥
|
||||
* @author : heibaiying
|
||||
* @description : 主配置类
|
||||
* @date :create in 2018/12/27
|
||||
*/
|
||||
@Configuration
|
||||
@EnableWebMvc
|
||||
|
@ -6,9 +6,8 @@ import javax.servlet.annotation.WebFilter;
|
||||
import javax.servlet.annotation.WebInitParam;
|
||||
|
||||
/**
|
||||
* @author : 罗祥
|
||||
* @author : heibaiying
|
||||
* @description : 编码过滤器 防止乱码
|
||||
* @date :create in 2018/12/27
|
||||
*/
|
||||
@WebFilter(filterName = "characterEncodingFilter", urlPatterns = "/*",
|
||||
initParams = {
|
||||
|
Reference in New Issue
Block a user