내용은 이러함
No bean named 'springSecurityFilterChain' is defined
원인 : 스프링시큐리티 혼공한다고 web.xml과 security-context.xml 파일을 수정했기 때문임
해결 : 기존에 context-*.xml 이런식으로 되어있었기 때문에 파일명도 context-security.xml로 바꿔줌
web.xml 에
<filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> </filter> <filter-mapping> <filter-name>springSecurityFilterChain</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath*:egovframework/spring/context-*.xml</param-value> </context-param> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/config/egovframework/springmvc/dispatcher-servlet.xml /WEB-INF/spring/security-context.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet>
(Spring Security Filter 부분 발췌함)
> ```
// 전
<context-param>
<param-name> contextConfigLocation</param-name>
<param-value> classpath*:egovframework/spring/*-context.xml </param-value>
</context-param>
// 후
<context-param>
<param-name> contextConfigLocation</param-name>
<param-value> classpath*:egovframework/spring/context-*.xml </param-value>
</context-param>
*-context.xml 이부분 context-*.xml로 수정
바꾼거 ⬇️⬇️
No bean named 'leaveaTrace' available
찾아보니깐
No bean named available 원인은 크게 네가지로 분류됨
해결 : 나는 4 도했다가 , 톰캣까지 삭제했다가 다시 설정해줌
원인 : Context Root도 '/'로 되어있었고 Deployment Assembly의 path도 잘되어있었는데....
해결 :
1.워크스페이스 경로/.settings 로 가서 org.eclipse.wst.common.component 컴포넌트파일을 편집기로 연다.
2.아래 표시한부분이 프로젝트명과다르게 설정되어있다면 대소문자 구별해 똑같이 수정한다.
결과물 :
(아무것도 안나오는게맞음)