摘要:
ContentNegotiatingViewResolver 自动配置了ViewResolver,就是我们之前学习的SpringMVC的视图解析器; 即根据方法的返回值取得视图对象(View),然后由视图对象决定如何渲染(转发,重定向)。 我们去看看这里的源码:我们找到 WebMvcAutoConf 阅读全文
摘要:
在SpringBoot项目中使用Thymeleaf模板引擎,需要在pom.xml中导入相关依赖(SpringBoot版本 2.7.2) <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-s 阅读全文