puzhibing
2023-07-06 c0f6294b0be6789fddd652f89f820fcf6d5526cf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.dsh.config.Sharding_jdbc;
 
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
 
 
/**
* 数据源配置
* @author pzb
* @Date 2022/11/21 20:32
*/
@Component
@PropertySource(value = "classpath:sharding-jdbc.properties")
@ConfigurationProperties(prefix = "datasource.master0")
public class Master0DataSource extends DatasourceModel {
 
}