Ошибка в моей консоли:
Код: Выделить всё
***************************
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
Код: Выделить всё
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