java.lang.IllegalStateException: Cannot load configuration class: ***.service.constructionsite.ConstructionSiteApplication

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Andrew Holland, 10 months ago
Cannot load configuration class: ***.service.constructionsite.ConstructionSiteApplication
via Stack Overflow by Marlon
, 8 months ago
Cannot load configuration class: com.rd.config.SecurityConfiguration$GlobalSecurityConfiguration
via GitHub by MartinoMensio
, 6 months ago
Cannot load configuration class: it.polito.ai.config.SecurityConfiguration$GlobalSecurityConfiguration
via Stack Overflow by Harkirat Singh Lamba
, 9 months ago
Cannot load configuration class: org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration$DispatcherServletRegistrationConfiguration
via GitHub by ubibi
, 11 months ago
Cannot load configuration class: org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration$DispatcherServletRegistrationConfiguration
via Stack Overflow by Kurtiss
, 1 year ago
Cannot load configuration class: com.tutorialspoint.HelloWorldConfig
java.lang.IllegalStateException: Cannot load configuration class: ***.service.constructionsite.ConstructionSiteApplication
at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:403)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:249)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:281)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:125)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:686)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)

Users with the same issue

3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.