package com.rongpan.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class WebConfigurer implements WebMvcConfigurer {
@Override
public void addViewControllers(ViewControllerRegistry registry) {
//默认地址(可以是页面或后台请求接口)
registry.addViewController(“/”).setViewName(“forward:/upload.html”);
//设置过滤优先级最高
registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
}
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END




![org.apache.tomcat.util.modeler.BaseModelMBean.invoke 调用方法[manageApp]时发生异常-盛世青年网](/wp-content/uploads/202105//c6091eb440f6780a07a3e69b13b40ff1.jpg)


暂无评论内容