Monday, 8 December 2014

How do I make spring security look to hibernate instead of the security.xml file?



I have spring security setup with


http://ift.tt/1G9xMoS


Right now it looks at the user in the xml file, this is not optimal, I want to look in my database for the user. How do I do that?


Here is my security.xml file:


http://ift.tt/1wqdHv2


I think maybe what I need to do is make a hibernate bean for users? Do I need to make one for roles as well? How do I tell it to look at my hibernate connection instead of the xml file?


I am basically looking to do something like this:


http://ift.tt/1wqkc16


But with hibernate.


No comments:

Post a Comment