Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 591 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 591 Bytes

Spring Data Jdbc Template

How to Configure

Enable Repositories

Annotate your configuration class with @EnableJdbcTemplateRepositories.

Example:

@EnableJdbcTemplateRepositories(basePackages = "your.repository.package")
@Configuration
public class ApplicationConfig {
    
} 

Register NamedParameterJdbcOperations Bean

This library uses NamedParameterJdbcTemplate. You should register its bean.

Example:

@Bean
public NamedParameterJdbcTemplate namedParameterJdbcTemplate() {
  return new NamedParameterJdbcTemplate();
}

License

See LICENSE.txt.