공부/Spring
[Spring] javax.servlet.ServletException: Circular view path ..에러
leejinwoo1126
2022. 1. 7. 23:10
반응형
문제내용
- 스프링 부트로 게시판 만들기를 하고 있는데 아래와 같은 에러가 발생했다.
- 해석하자면 mapping 주소가 /singup인데 view name도 signup이라 에러 발생하면서 shut-down 되버림
[signup]: would dispatch back to the current handler URL [/signup] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
- 해석하자면 mapping 주소가 /singup인데 view name도 signup이라 에러 발생하면서 shut-down 되버림
해결방법
- @Controller에서 ModelAndView 또는 Model에 View Name 을 넣어주면 해결됨
반응형