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

Viewed 48
  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]

1 Answers

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

Related