-
Notifications
You must be signed in to change notification settings - Fork 666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
javax.servlet.ServletException: Circular view path [greeting]: would dispatch back to the current handler URL [/greeting] again. #19
Comments
Sorry, it's my mistake. |
@Zeleven i have same problem. What does it was?) |
@ar7n - What fix did you make ? |
@javaHelper i downgraded version of spring or thymeleaf. I can't remember exactly which one it was. |
I raised question here: https://stackoverflow.com/questions/52118145/javax-servlet-servletexception-circular-view-path-error-would-dispatch-back It looks to me more issue with URL rather than anything else. Also added thymeleaf dependency and now getting below error.
|
I solved this problem by adding the spring-boot-starter-thymeleaf |
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 I replaced the above with And it got working. |
I fixed mine by using spring boot 2.2.2.RELEASE |
Converting @contoller to @RestController resolved this issue. |
Thanks @johnmilimo, replacing |
I don't think it resolved your problem. After chaning it to "RestController", it just return the "greeting" string itself -- that's not a view page. Update: |
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
The text was updated successfully, but these errors were encountered: