-
스프링 404 에러스프링 2022. 4. 26. 20:32
<servlet>
<servlet-name>appServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/spring/appServlet/servlet-context.xml
/WEB-INF/spring/appServlet/security-context.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>위 코드는 스프링 web.xml에서 사용하는 코드이다.
<param-value>/WEB-INF/spring/appServlet/servlet-context.xml</param-value>위 상태에서 스프링이 웹 동작 시 참고할 설정 파일을 추가할때
<param-value>/WEB-INF/spring/appServlet/servlet-context.xml</param-value>
<param-value>/WEB-INF/spring/appServlet/security-context.xml</param-value>
처음에 이렇게 입력을 했었는데 설정파일이 인식을 못 하는 문제가 발생했다.
<param-value> </param-value> 하나의 태그 안에 설정파일 경로를 여러개 써야 한다.
'스프링' 카테고리의 다른 글
500 에러 javax.el.PropertyNotFoundException (0) 2022.04.30 CSS 파일이 적용되지 않을 때. (0) 2022.04.27 ORA-00911 문자가 부적합합니다. 해결방법 (0) 2022.04.26 java.sql.SQLException: 부적합한 열 유형: 1111 (0) 2022.04.26 이메일 전송 오류 Mail server connection failed; nested exception is javax.mail.MessagingException: Could not convert socket to TLS; (0) 2022.04.22