Browse Source

设置默认库名称

miaolijing 2 years ago
parent
commit
7f13bcc2f2

+ 1 - 1
src/main/java/com/persagy/apm/diagnose/indicatorcompute/dao/ProjectIndicatorComputeMapper.java

@@ -10,7 +10,7 @@ import org.apache.ibatis.annotations.Mapper;
  * @author lixing
  * @version V1.0 2021-09-21 13:32:54
  */
-@Db(value = "${datasource-db.name")
+@Db(value = "${persagy.db.name}")
 @Mapper
 public interface ProjectIndicatorComputeMapper extends BaseMapper<ProjectIndicatorCompute>{
 

+ 1 - 1
src/main/java/com/persagy/apm/diagnose/timerecord/dao/CalculateTimeRecordMapper.java

@@ -10,7 +10,7 @@ import org.apache.ibatis.annotations.Mapper;
  * @author lixing
  * @version V1.0 2021-09-10 00:13:10
  */
-@Db(value = "${datasource-db.name")
+@Db(value = "${persagy.db.name}")
 @Mapper
 public interface CalculateTimeRecordMapper extends BaseMapper<CalculateTimeRecord>{
 

+ 3 - 2
src/main/resources/bootstrap.yml

@@ -102,7 +102,8 @@ alarm:
   category:
     list: Eqwb,Eqdx   # 报警系统编码
 
-datasource-db:
-  name: ${persagy.datasource-db.name} # 默认库名称
 
+persagy:
+  db:
+    name: ${datasource.db.name} # 默认库名称