首页>代码>Spring Boot整合JdbcTemplate极简入门实例>/springboot-ems/src/main/java/com/simon/springbootems/config/JdbcConfiguration.java
package com.simon.springbootems.config;
import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import javax.sql.DataSource;
/**
* @author Simon
*/
public class JdbcConfiguration {
@Bean
@ConfigurationProperties(prefix = "jdbc")
public DataSource getDataSource() {
DruidDataSource source = new DruidDataSource();
return source;
}
}
最近下载更多

最近浏览