Skip to content
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

Spring Security Login ViewResolver #395

Open
humanry opened this issue Oct 16, 2024 · 2 comments
Open

Spring Security Login ViewResolver #395

humanry opened this issue Oct 16, 2024 · 2 comments

Comments

@humanry
Copy link

humanry commented Oct 16, 2024

When integrating with Spring Security the view is not found, for non-secured pages the view works fine but for a page configured as login page in spring security, i get an error like so

`ERROR 10500 --- [admin] [nio-8080-exec-9] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Circular view path [login]: would dispatch back to the current handler URL [/login] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)] with root cause

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

@atomfrede
Copy link
Contributor

@humanry Do you have an example repo? Do you have a custom login page (with jte) or want to use the default one?

@Alwan
Copy link

Alwan commented Nov 25, 2024

The view name should not include a forward slash; instead, change it to "login".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants