/**
* 使用WebMvcConfigurer自定义拦截器、视图解析器、信息转换器、等
*/
@Configuration
public class GulimallMyWebConfig implements WebMvcConfigurer {
@Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/login.html").setViewName("login");
registry.addViewController("/reg.html").setViewName("reg");
}
}
标签:addViewController,setViewName,html,registry,使用,WebMvcConfigurer,public
From: https://www.cnblogs.com/ly2000/p/17754140.html