How to get data source for Spring Security Web in Java code

Posted by user1443689 on Stack Overflow See other posts from Stack Overflow or by user1443689
Published on 2012-06-08T04:38:24Z Indexed on 2012/06/08 4:40 UTC
Read the original article Hit count: 190

Filed under:
|
|

I'm creating a ZK Web application which uses Spring Security for authentication and I'm trying to implement a create user function, where the administrator supplies the details and the user account is created. I've got to the part where I want to put this data into the database, but now I'm thinking I shouldn't hard code the connection to the database, there must be a way to get the connection details from the Spring Security configuration. Is there? If so how?

© Stack Overflow or respective owner

Related posts about database

Related posts about spring