Код: Выделить всё
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChains': Cannot resolve reference to bean 'org.springframework.security.web.DefaultSecurityFilterChain#0' while setting bean property 'sourceList' with key [0]
...
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'mvcHandlerMappingIntrospector' available: A Bean named mvcHandlerMappingIntrospector of type org.springframework.web.servlet.handler.HandlerMappingIntrospector is required to use MvcRequestMatcher. Please ensure Spring Security & Spring MVC are configured in a shared ApplicationContext.
Код: Выделить всё
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
com.packt
webstore
1.0-SNAPSHOT
war
21
21
UTF-8
org.springframework
spring-webmvc
6.2.0
compile
junit
junit
3.8.1
test
org.glassfish.web
jakarta.servlet.jsp.jstl
3.0.0
jakarta.servlet.jsp.jstl
jakarta.servlet.jsp.jstl-api
3.0.0
org.springframework.security
spring-security-config
6.4.1
spring-asm
org.springframework
org.springframework.security
spring-security-web
6.4.1
webstore
Код: Выделить всё
DispatcherServlet
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
/ WEB-INF/spring/webcontext/DispatcherServlet-context.xml
1
DispatcherServlet
/
contextConfigLocation
/WEB-INF/spring/webcontext/security-context.xml
org.springframework.web.context.ContextLoaderListener
springSecurityFilterChain
org.springframework.web.filter.DelegatingFilterProxy
springSecurityFilterChain
/*
Код: Выделить всё
Подробнее здесь: https://stackoverflow.com/questions/792 ... spring-mvc
Мобильная версия