Engineering Note

[Spring-error] 본문

Server/Spring

[Spring-error]

Software Engineer Kim 2022. 8. 8. 11:21

Error message

 

javax.servlet.ServletException: Circular view path [project]: would dispatch back to the current handler URL [/project] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)

 

 

 

URL 패턴 매핑값과 String return 값이 같을 때 위 같은 에러가 발생할 수 있다.

 

아래처럼 'domain:8080/hello' url과 return 값 hello가 같을 경우가 예가 될 수 있다.

 

@Getmapping("hello")public String test(){    return "hello";}

Comments