티스토리 뷰

반응형

ECLIPSE로 작업하던 스프링 프로젝트를 인텔리 제이로 옮겼을때 실행되는 오류 2

when you change eclipse projects to IntelliJ there are some problems

this is one of error I experienced  

 

WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/springMVCBoard/list] in DispatcherServlet with name 'appServlet'

 

인텔리제이는 기본적으로 컨텍스트패스가 /로 되어있습니다

이클립스는 자동으로 프로젝트 명을 컨텍스트 패스로 잡기떄문에 원래 기존의 주소로 접속하신다면 에라가 나죠

http://localhost:8181/springMVCBoard/list

 

따로 설정을 안원하신다면 

 

there's no context path in Intellij basically.

so if you don't set a context path and use URL you use before like this you see an error

http://localhost:8181/springMVCBoard/list

 

1. 이렇게 로컬호스트 뒤에 바로 리퀘스트 맵핑명 

http://localhost:8181/list

2. Edit Configurations ->Deployment->Application context 에서 원하시는 컨텍스트명 설정

 

 

반응형
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함