1. web.xml 파일에서 DispatcherServlet 선언 확인
<servlet-mapping>
<servlet-name>appServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
/ > /* 변경
2. servlet-context.xml 파일 확인
<mvc:annotation-driven />
<context:component-scan base-package="com.spring.board* " />
3. url mapping 확인
controller.java 파일에서
@RequestMapping(value = "/sample")
'Backend > 기타' 카테고리의 다른 글
어이없는 에러 : 다 잘 입력했는데 에러가 난다면 서버를 재시작해라. (0) | 2023.05.19 |
---|---|
에러 : the import javax.annotation.resource cannot be resolved (0) | 2023.05.19 |
Junit test 없을 때 (0) | 2023.05.18 |
table 생성했는데 에러코드 1146 발생함 (0) | 2023.05.18 |
Java compiler level does not match the version of the installed Java project facet. (0) | 2023.05.17 |