본문 바로가기
Programming/Etc

[Java] 스프링 에러 : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Circular view path [hello]: would dispatch back to the current handler URL [/hello] again. Check your ViewResolver setup! (Hint: This ma..

by Renechoi 2022. 10. 24.

Thymeleaf 템플릿엔진 작동시 간단한 매핑을 시도하는 중 아래와 같은 에러 발생 

 

 

: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Circular view path [hello]: would dispatch back to the current handler URL [/hello] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)] with root cause

 

 

Dependancy가 추가가 안되어 있었다. 

 

implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'

 

복사해줌으로써 간단히 해결

 

 

 

 

반응형