perf:调整数据库的配置属性
This commit is contained in:
@@ -20,7 +20,7 @@ import java.util.List;
|
||||
* @author hao
|
||||
*/
|
||||
@Configuration
|
||||
@ConfigurationProperties(prefix = "tiesheng.db-backup")
|
||||
@ConfigurationProperties(prefix = "tiesheng.db.backup")
|
||||
@EnableScheduling
|
||||
public class DbBackupConfig implements SchedulingConfigurer {
|
||||
|
||||
@@ -49,6 +49,10 @@ public class DbBackupConfig implements SchedulingConfigurer {
|
||||
* 数据库备份
|
||||
*/
|
||||
public void dbBackup() {
|
||||
if (!FileUtil.exist(path)) {
|
||||
return;
|
||||
}
|
||||
|
||||
String url = SpringUtil.getProperty("spring.datasource.url");
|
||||
String username = SpringUtil.getProperty("spring.datasource.username");
|
||||
String password = SpringUtil.getProperty("spring.datasource.password");
|
||||
|
||||
@@ -16,7 +16,7 @@ import java.util.List;
|
||||
* @author hao
|
||||
*/
|
||||
@Configuration
|
||||
@ConfigurationProperties(prefix = "tiesheng.db-migration")
|
||||
@ConfigurationProperties(prefix = "tiesheng.db.migration")
|
||||
public class DbMigrationConfig {
|
||||
|
||||
private String table = "core_config_db";
|
||||
|
||||
Reference in New Issue
Block a user