casid / jte

Secure and speedy templates for Java and Kotlin.
https://jte.gg
Apache License 2.0
844 stars 63 forks source link

Spring Security Login ViewResolver #395

Open humanry opened 1 month ago

humanry commented 1 month ago

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 commented 1 month ago

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