spring boot中配置共用Thymeleaf和Jsp

一、Spring Boot中新增了包括Thymeleaf在内的诸多模版引擎的自动装载,但奇怪的是,自动注入的ThymeleafviewResolver也会匹配到寻找Jsp视图的请求,显然ThymeleafviewResolver找不到对应的Thymeleaf视图后接着返回了error错误页面,于是排在后面用来解析Jsp视图的InternalResourceViewResolver就失效了。 二、于
相关文章
相关标签/搜索