junit 错误代码:无法找到类[org.springframework. Boot .autoconfigure.security.安全性自动配置]

zkure5ic  于 2022-11-11  发布在  Spring
关注(0)|答案(1)|浏览(197)

1.启动应用程序
1.以下配置式处于活动状态:...
1.应用程序运行失败
异常错误:无法找到类[org.springframework. Boot .autoconfigure.security.安全性自动配置]
在这个例子中,我们可以使用一个新的类来定义一个新的类名称。第5.3.20节]

n3h0vuf2

n3h0vuf21#

将其添加到您的build.gradle(或pom.xml):compile("org.springframework.boot:spring-boot-starter-security")

相关问题