-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf($DataSource): reduce instances of data source
- Loading branch information
1 parent
7993f40
commit 581ac97
Showing
6 changed files
with
72 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...-starter/src/main/java/com/jmsoftware/maf/springcloudstarter/database/DataSourceEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.jmsoftware.maf.springcloudstarter.database; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
import lombok.ToString; | ||
|
||
/** | ||
* Description: DataSourceEnum, change description here. | ||
* | ||
* @author Johnny Miller (锺俊), email: johnnysviva@outlook.com, date: 6/27/2021 12:03 AM | ||
**/ | ||
@Getter | ||
@ToString | ||
@RequiredArgsConstructor | ||
public enum DataSourceEnum { | ||
/** | ||
* Master | ||
*/ | ||
MASTER("master"), | ||
/** | ||
* Slave 1 | ||
*/ | ||
SLAVE1("slave1"), | ||
/** | ||
* Quartz | ||
*/ | ||
QUARTZ("quartz"), | ||
; | ||
|
||
private final String dataSourceName; | ||
} |
17 changes: 0 additions & 17 deletions
17
...rter/src/main/java/com/jmsoftware/maf/springcloudstarter/database/DataSourceTypeEnum.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters