在Springboot项目中导入thymeleaf依赖,报了project build error: ‘dependencies.dependency.version’ for org.springframework.boot:spring-boot-starter-thymeleaf:jar is missing.zhe这样的一个错误。
在网上经过查询才知道,是因为我少写了一个父类的引用,把下面这行父类的引用加上去就行了。
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.1.RELEASE</version>
</parent>
本文介绍了解决Spring Boot项目中Thymeleaf依赖缺失问题的方法。作者遇到项目构建错误,提示缺少spring-boot-starter-thymeleaf版本信息。通过添加spring-boot-starter-parent依赖的父级配置解决了该问题。
3666

被折叠的 条评论
为什么被折叠?



