question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

javax.servlet.ServletException: Circular view path [greeting]: would dispatch back to the current handler URL [/greeting] again.

See original GitHub issue

The 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:closed
  • Created 6 years ago
  • Comments:11

github_iconTop GitHub Comments

23reactions
johnmilimocommented, Jul 17, 2019

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.

3reactions
reach009commented, May 15, 2019

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>

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found