对比新文件 |
| | |
| | | package com.gk.firework.Config.DataSource; |
| | | |
| | | import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder; |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | import javax.sql.DataSource; |
| | | |
| | | @Configuration |
| | | public class DataSourceConfig { |
| | | |
| | | @Bean |
| | | @ConfigurationProperties("spring.datasource.one") |
| | | DataSource dsOne(){ |
| | | return DruidDataSourceBuilder.create().build(); |
| | | } |
| | | |
| | | } |