Exception in thread “main” java.lang.IllegalArgumentException: Cannot instantiate interface org.springframework.context.ApplicationContextInitializer

Exception in thread "main" java.lang.IllegalArgumentException: Cannot instantiate interface org.springframework.context.ApplicationContextInitializer : org.springframework.boot.autoconfigure.SharedMetadataReaderFactoryContextInitializer

at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:396)

at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:373)

at org.springframework.boot.SpringApplication.initialize(SpringApplication.java:251)

at org.springframework.boot.SpringApplication.(SpringApplication.java:227)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:1112)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:1101)

at com.example.myprojectk.WebclientApplication.main(WebclientApplication.java:10)

Caused by: java.lang.NoSuchMethodException: org.springframework.boot.autoconfigure.SharedMetadataReaderFactoryContextInitializer.()

at java.lang.Class.getConstructor0(Class.java:3082)

at java.lang.Class.getConstructor(Class.java:1825)

at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:391)

... 6 more...

Read More »

By: StackOverFlow - 5 days ago

Related Posts