Open nixinhua001 opened 4 years ago
找到了,是WebMvcSupportConfiguration类中configureViewResolvers方法问题,注释掉registry.order(1);就行
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
InternalResourceViewResolver resolver = new InternalResourceViewResolver();
registry.viewResolver(resolver);
// registry.order(1);
}
本来应用中启用了@EnableWebMvc,加了@EnableDubboSwagger导致原来的controller方法,返回的视图名称找不到对应的视图了
访问http://localhost:8088/ssologin, 能进到contoller对应的方法
但找不到ssologin对应的视图(视图引擎用的是spring-boot-starter-thymeleaf),抛出异常: