Relative Content

Tag Archive for javaspringspring-bootspring-security

One of My SecurityFilterChain Beans for Two Login Pages not recognised or detected .Only one login. is working

I have two login pages for Master and Users and two filter chain beans have been created in two static classess in a normal Configuration Class.It always works fine if i try to login for Master,How ever When I want to login for Users,I get the following error:
“There was an unexpected error (type=Not Found, status=404).
No static resource login_user.
org.springframework.web.servlet.resource.NoResourceFoundException: No static resource login_user.”

Spring Security and Application Logic

I’m moderately familiar with Spring-boot and have built somewhat of a Todo application. I’m having an issue and I’ll try my best to explain it. I have a model class, when the authenticated user logs in, I want them to be able to access their todos. Within this model class, I want to utilize a field from the user object, i.e., username. I want that username to be the current logged in user or the principle. Such that they can read and write their todos. Seems pretty simple but perhaps I’m overthinking the implementation. If you have any better ideas in performing the same logic, please help and/or advice.