@EnableTransactionManagement(proxyTargetClass=true) public class JdbcConfig extends Object implements org.springframework.context.EnvironmentAware
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.core.env.Environment |
env |
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
JdbcConfig() |
| Modifier and Type | Method and Description |
|---|---|
DataSource |
dataSource() |
org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor |
persistenceExceptionTranslationPostProcessor() |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
org.springframework.jdbc.datasource.DataSourceTransactionManager |
transactionManager(DataSource dataSource) |
protected org.slf4j.Logger logger
protected org.springframework.core.env.Environment env
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment in interface org.springframework.context.EnvironmentAware@Bean(destroyMethod="close") public DataSource dataSource()
@Lazy
@Bean
public org.springframework.jdbc.datasource.DataSourceTransactionManager transactionManager(@Autowired
DataSource dataSource)
@Lazy @Bean public org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor persistenceExceptionTranslationPostProcessor()
Copyright © 2024 江苏南大先腾信息产业股份有限公司. All rights reserved.