Error running Spring Boot with Intellj 2018.1
Answered
I am getting this error:
ERROR org.springframework.beans.factory.support.DefaultListableBeanFactory:581 - Destroy method on bean with name 'org.springframework.context.annotation.internalScheduledAnnotationProcessor' threw an exception
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@3ab6678b: startup date [Wed Apr 25 15:06:42 EDT 2018]; root of context hierarchy
in the new Intellij version where it runs fine with 2017.x
Could you let me know what I need to do here?
Please sign in to leave a comment.
Do you have any other exceptions with full stack trace? Try with enabled/disabled Include dependencies with "Provided" scope option in Spring Boot Run/Debug Configuration. Check also similar threads about this error, https://stackoverflow.com/q/45318618/2000323, https://stackoverflow.com/q/44686432/2000323
Thanks after un-checking the scope, it worked!
I had this same problem, and after unchecking the "Include dependencies with 'Provided' scope" the problem appears to have gone away.