在@configuration类中注册一个bean返回一个DruidDataSource
@Bean
@ConfigurationProperties(prefix = "spring.datasource")
public DruidDataSource druidDatasource(){
return new DruidDataSource();
}
在@configuration类中注册一个bean返回一个DruidDataSource
@Bean
@ConfigurationProperties(prefix = "spring.datasource")
public DruidDataSource druidDatasource(){
return new DruidDataSource();
}