I'm working on the provided project.
And I'm struggling with the runtime issue
as:
Exception in thread "main" java.lang.AbstractMethodError: Receiver class org.springframework.boot.context.config.ConfigFileApplicationListener does not define or inherit an implementation of the resolved method 'abstract boolean supportsSourceType(java.lang.Class)' of interface org.springframework.context.event.SmartApplicationListener.
My current POM
version.
My current html
version. HTML
file is related to xml
logic.
Based on it, my question is the following:
Spring
in POM
as:<spring-boot.version>2.6.3</spring-boot.version>
, it didn't change the overall situation.
Run configurations
in the following format as:clean install -U
What can be else the cause of the issue?
Thank you in advance for any advices
/ideas
/smart thoughts
/adequate propositions
on my question, if I find on my own the cause, I'll update this question.
If you need more details from me, please, let me know.
You have mismatching dependencies.
Your Spring Boot
, Spring Framework
and Spring Context
versions all should match.
I've managed to run your project by using these versions:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>5.3.29</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.3.20</version> <!-- Use a version 5.0 or higher -->
</dependency>
Spring Boot 2.7.0
is meant to ship with Spring Framework 5.3.29
, and at the time that came out, Spring Context 5.3.20
was the latest version.