[Y] datasource

master
taylor.dang 5 years ago
parent 74e9350373
commit 4648b9885e

@ -10,11 +10,11 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId>
<version>1.1.3</version>
<version>1.1.4</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jib-maven-plugin.version>1.1.2</jib-maven-plugin.version>
<jib-maven-plugin.version>1.4.0</jib-maven-plugin.version>
<docker-image.version>${project.version}</docker-image.version>
</properties>

@ -22,13 +22,13 @@ import java.util.Map;
public class DataSourceConfiguration {
@Bean(name = "masterDataSource")
@ConfigurationProperties(prefix = "app.datasource.master")
@ConfigurationProperties(prefix = "spring.datasource.master")
public DataSource masterDataSource() {
return DataSourceBuilder.create().type(HikariDataSource.class).build();
}
@Bean(name = "slaveDataSource")
@ConfigurationProperties(prefix = "app.datasource.slave")
@ConfigurationProperties(prefix = "spring.datasource.slave")
public DataSource slaveDataSource() {
return DataSourceBuilder.create().type(HikariDataSource.class).build();
}

Loading…
Cancel
Save