简体   繁体   中英

Spring boot java.lang.IllegalArgumentException : could not find class [org.springframework.boot.autoconfigure.security.securityAutoConfiguration]

  1. Starting the application
  2. The following profiles are active: ...
  3. Application runs failed

java.lang.IllegalArgumentException: could not find class [org.springframework.boot.autoconfigure.security.securityAutoConfiguration]

at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:334) - [spring-core-5.3.20 jar: 5.3.20]

Add this to your build.gradle (or pom.xml): compile("org.springframework.boot:spring-boot-starter-security")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM