Example usage for org.springframework.security.core.userdetails.jdbc JdbcDaoImpl setDataSource

List of usage examples for org.springframework.security.core.userdetails.jdbc JdbcDaoImpl setDataSource

Introduction

In this page you can find the example usage for org.springframework.security.core.userdetails.jdbc JdbcDaoImpl setDataSource.

Prototype

public final void setDataSource(DataSource dataSource) 

Source Link

Document

Set the JDBC DataSource to be used by this DAO.

Usage

From source file:info.bluefoot.winter.config.ApplicationMainConfig.java

@Bean
@Inject/*from  www. ja va2  s .c o m*/
public UserDetailsService userDetailsService(DataSource dataSource) {
    org.springframework.security.core.userdetails.jdbc.JdbcDaoImpl uds = new org.springframework.security.core.userdetails.jdbc.JdbcDaoImpl();
    uds.setDataSource(dataSource);
    return uds;
}