Olufemi Adeojo
09/24/2023, 12:51 PM. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.1.4)
2023-09-24T08:48:34.546-04:00 INFO 10957 --- [ restartedMain] com.freighthero.secu.SecuApplicationKt : Starting SecuApplicationKt using Java 17.0.8.1 with PID 10957 (/Users/oadeojo/Development/kotlin/spring/secu/build/classes/kotlin/main started by oadeojo in /Users/oadeojo/Development/kotlin/spring/secu)
2023-09-24T08:48:34.547-04:00 INFO 10957 --- [ restartedMain] com.freighthero.secu.SecuApplicationKt : No active profile set, falling back to 1 default profile: "default"
2023-09-24T08:48:34.574-04:00 INFO 10957 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2023-09-24T08:48:34.574-04:00 INFO 10957 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2023-09-24T08:48:35.147-04:00 WARN 10957 --- [ restartedMain] onfigReactiveWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'securityFilterChain' defined in class path resource [com/freighthero/secu/SecurityConfig.class]: Unsatisfied dependency expressed through method 'securityFilterChain' parameter 0: No qualifying bean of type 'org.springframework.security.config.annotation.web.builders.HttpSecurity' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
2023-09-24T08:48:35.155-04:00 INFO 10957 --- [ restartedMain] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2023-09-24T08:48:35.164-04:00 ERROR 10957 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of method securityFilterChain in com.freighthero.secu.SecurityConfig required a bean of type 'org.springframework.security.config.annotation.web.builders.HttpSecurity' that could not be found.
Action:
Consider defining a bean of type 'org.springframework.security.config.annotation.web.builders.HttpSecurity' in your configuration.
Process finished with exit code 0