来自官方GitHub存储库的Spring Security示例无效

时间:2017-05-25 07:08:02

标签: spring-boot spring-security

我按照教程Hello Spring Security with Boot学习Spring Security 将其导入STS后,我遇到了构建错误:

MenuRepository

我认为该示例来自官方GitHub存储库,所以它应该运行良好。不幸的是,我遇到了构建错误。

然后我尝试修复构建错误。我在POM文件中添加了[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-thymeleaf:jar is missing. [ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-web:jar is missing. [ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-test:jar is missing. 个标签,POM文件中的错误消失了。 但我仍遇到主类错误:

<version>1.5.3.release</version>

1 个答案:

答案 0 :(得分:-1)

我使用了官方网站上的所有春季样本,但它确实有效。

我的样本pom文件如下,

https://github.com/Roshanmutha/rcmutha-springrest/blob/master/pom.xml

根据您正在尝试的样本,只会添加和删除。

点击以下链接查看我从春季回购中试过的所有样本:

https://github.com/Roshanmutha?utf8=%E2%9C%93&tab=repositories&q=rcmutha&type=&language=