views:

112

answers:

2

Hello!

I read the "Spring Security 3 database authentication with Hibernate"! But I don't know how I should implementate it into my project!

  • In which document I have to set the password/username/drivers/url for the database?
  • I have different column titles like OPERATOR_ID/USR_ID/PASSWORD

OPERATOR_ID should be the login name, USR_ID the role and the password for the login

Please, maybe you could post an example which implements my questions? Maybe for a checkout or a *.war file?

A: 

ref 1
ref 2

org.life.java
A: 

I dont think there is any configuration as such for doing this. You have to implement the UserDetailsService which has only one method loadUserByUsername to load the user and you have to implement the same to load your user information from your database using hibernate.

See here

Gopi