Forums Register Login

Spring Login Issues (Using Maven, spring-data-jpa, Hibernate and spring Security)

1
+Pie Number of slices to send: Send
I'm experimenting a bit with spring and I tried to wright my first secured application.
Only the homepage, the loginpage and the sign-uppage are visitable without loging in an when you try to click on a button in the homepage you're redirected to the loginpage.
So far so good. I'm able to visit the homepage, I'm beïng redirected, I also can register (I checked with datagrip),
But when I try to log in, the page refeshes and nothing happens.
I don't even get a error, no tracestack nothing.
First I had a seperate entity and repository for my role table and had joined the to tables on users.id and role.userId, but then I thought maybe I joined them wrong or something, so I removed my roleEntity and repository and simply putted a extra fiels in my usersEntity but the result is the same.
How do you debug if you have no error or stacktrace?

My WebsecurityConfig:




My LoginController:




My UsersEntity:




My sqlStatements to Login:

+Pie Number of slices to send: Send
You must learn how to use logging in your entity.

No matter how many women are assigned to the project, a pregnancy takes nine months. Much longer than this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 593 times.
Similar Threads
Help needed in resource file
Spring Security Hibernate Annotations Login
Spring 3 form validation
No getter method for property ename of bean org.apache. struts.taglib.html. BEAN
Caching Issues with Hibnernate
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:23:24.