List of usage examples for org.springframework.jdbc.support SQLErrorCodeSQLExceptionTranslator setDataSource
public void setDataSource(DataSource dataSource)
From source file:es.galvarez.rest.config.SpringConfiguration.java
@Bean(name = "jdbcExceptionTranslator") public SQLErrorCodeSQLExceptionTranslator jdbcExceptionTranslator() { SQLErrorCodeSQLExceptionTranslator exceptionTranslator = new SQLErrorCodeSQLExceptionTranslator(); exceptionTranslator.setDataSource(configureDataSource()); return exceptionTranslator; }