Исправьте путь к классам вашего приложения, чтобы он содержал совместимые версии классов ShiroWebFilterConfiguration и FJAVA

Программисты JAVA общаются здесь
Ответить Пред. темаСлед. тема
Anonymous
 Исправьте путь к классам вашего приложения, чтобы он содержал совместимые версии классов ShiroWebFilterConfiguration и F

Сообщение Anonymous »

У меня возникли проблемы с запуском приложения Springboot Maven. Проблема началась с отсутствующей зависимости, что привело к другой проблеме, которую я не могу исправить. Я попробовал несколько предложений со всего Интернета, но безрезультатно. Я удалил папку .m2 и сделал новую сборку, но возвращается та же ошибка.
Ошибка в моей консоли:

Код: Выделить всё

***************************
APPLICATION FAILED TO START
***************************

Description:

An attempt was made to call a method that does not exist.  The attempt was made from the following location:

org.apache.shiro.spring.config.web.autoconfigure.ShiroWebFilterConfiguration.filterShiroFilterRegistrationBean(ShiroWebFilterConfiguration.java:63)

The following method did not exist:

'void org.springframework.boot.web.servlet.FilterRegistrationBean.setDispatcherTypes(javax.servlet.DispatcherType, javax.servlet.DispatcherType[])'

The calling method's class, org.apache.shiro.spring.config.web.autoconfigure.ShiroWebFilterConfiguration, was loaded from the following location:

jar:file:/E:/Mysoftware/apache-maven-3.9.5/repo/org/apache/shiro/shiro-spring-boot-starter/2.0.1/shiro-spring-boot-starter-2.0.1.jar!/org/apache/shiro/spring/config/web/autoconfigure/ShiroWebFilterConfiguration.class

The called method's class, org.springframework.boot.web.servlet.FilterRegistrationBean, is available from the following locations:

jar:file:/E:/Mysoftware/apache-maven-3.9.5/repo/org/springframework/boot/spring-boot/3.3.1/spring-boot-3.3.1.jar!/org/springframework/boot/web/servlet/FilterRegistrationBean.class

The called method's class hierarchy was loaded from the following locations:

org.springframework.boot.web.servlet.FilterRegistrationBean: file:/E:/Mysoftware/apache-maven-3.9.5/repo/org/springframework/boot/spring-boot/3.3.1/spring-boot-3.3.1.jar
org.springframework.boot.web.servlet.AbstractFilterRegistrationBean: file:/E:/Mysoftware/apache-maven-3.9.5/repo/org/springframework/boot/spring-boot/3.3.1/spring-boot-3.3.1.jar
org.springframework.boot.web.servlet.DynamicRegistrationBean: file:/E:/Mysoftware/apache-maven-3.9.5/repo/org/springframework/boot/spring-boot/3.3.1/spring-boot-3.3.1.jar
org.springframework.boot.web.servlet.RegistrationBean: file:/E:/Mysoftware/apache-maven-3.9.5/repo/org/springframework/boot/spring-boot/3.3.1/spring-boot-3.3.1.jar

Action:

Correct the classpath of your application so that it contains compatible versions of the classes org.apache.shiro.spring.config.web.autoconfigure.ShiroWebFilterConfiguration and org.springframework.boot.web.servlet.FilterRegistrationBean

Process finished with exit code 1

Мой pom.xml:

Код: Выделить всё

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0

org.springframework.boot
spring-boot-starter-parent
3.3.1
  

com.example
shiro_springboot
0.0.1-SNAPSHOT
shiro_springboot
shiro_springboot














17
17



org.springframework.boot
spring-boot-starter



org.springframework.boot
spring-boot-starter-test
test



com.baomidou
mybatis-plus-spring-boot3-starter
3.5.7



com.baomidou
mybatis-plus-generator
3.5.7



org.springframework.boot
spring-boot-starter-freemarker



com.mysql
mysql-connector-j
runtime



org.projectlombok
lombok



org.apache.shiro
shiro-spring-boot-web-starter
2.0.1



org.springframework.boot
spring-boot-starter-web



javax.servlet
javax.servlet-api
4.0.1






org.springframework.boot
spring-boot-maven-plugin



org.projectlombok
lombok









Любая информация приветствуется.


Подробнее здесь: https://stackoverflow.com/questions/786 ... le-version
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «JAVA»