javax.servlet.ServletException: Circular view path [greeting]: would dispatch back to the current handler URL [/greeting] again.
See original GitHub issueThe example project can’t work, I got the error javax.servlet.ServletException: Circular view path [greeting]: would dispatch back to the current handler URL [/greeting] again.
when I access the /greeting
Issue Analytics
- State:
- Created 6 years ago
- Comments:11
Top Results From Across the Web
How to avoid the "Circular view path" exception with Spring ...
Circular view path [preference]: would dispatch back to the current handler URL [/preference] again. Check your ViewResolver setup! (Hint: This may be the ......
Read more >Circular View Path Error - Baeldung
Learn about the Circular View Path error in a Spring Boot project. ... [path]: would dispatch back to the current handler URL [/path]...
Read more >Circular view path [error]: would dispatch back to the current ...
Hello. The javax.servlet.ServletException: Circular view path [error]: would dispatch back to the current handler URL [/error] again.
Read more >javax.servlet.ServletException: Circular view path [error]
Circular view path is a common issue that occurs when the url is invoked in a circular way. If the default error page...
Read more >javax.servlet.ServletException: Circular view path [hello]
javax.servlet.ServletException: Circular view path [hello]: would dispatch back to the current handler URL [/hello] again.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I experienced a similar problem today. All the suggestions I got online could not help, until I tried the below:
I had annotated my controller using
@Controller
>import org.springframework.stereotype.Controller
I replaced the above with
@RestController
>import org.springframework.web.bind.annotation.RestController
And it got working.
I solved this problem by adding the spring-boot-starter-thymeleaf Here is the code: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency>