Browse Source

将配置移到配置中心

lixing 3 years ago
parent
commit
e85286d45f

+ 1 - 1
src/main/java/com/persagy/apm/alarmservice/group/alarmdic/model/dto/QueryAlarmDicDTO.java

@@ -16,6 +16,6 @@ import javax.validation.constraints.NotBlank;
 @ApiModel
 public class QueryAlarmDicDTO {
     @NotBlank(message = "请输入要查询的字典类型")
-    @ApiModelProperty(value = "字典类型", required = true, notes = "com.persagy.apm.common.enums.AlarmDicTypeEnum")
+    @ApiModelProperty(value = "字典类型", required = true, notes = "com.persagy.apm.alarmservice.common.enums.AlarmDicTypeEnum")
     private String type;
 }

+ 4 - 42
src/main/resources/bootstrap.yml

@@ -3,52 +3,14 @@ server:
     9977
 spring:
   application:
-    name: energy-alarm-service
-  datasource:
-    dynamic:
-      enabled: true
-      primary: master #设置默认的数据源或者数据源组,默认值即为master
-      strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
-      datasource:
-        master:
-          url: ${spring.datasource.url}
-          username: ${spring.datasource.username}
-          password: ${spring.datasource.password}
-          driver-class-name: ${spring.datasource.driver-class-name}
-          continue-on-error: true
-          separator: ";"
-          schema: classpath*:db/init/table.sql
-          data: classpath*:db/init/data.sql
-  data:
-    elasticsearch:
-      repositories:
-        enabled: true
-      client:
-        reactive:
-          connection-timeout: 5000
+    name: energy_alarm_service
 
 EUREKA_CLIENT_DEFAULT_ZONE: http://frame:123456@develop.persagy.com/integrated-eureka/eureka/
-#EUREKA_CLIENT_DEFAULT_ZONE: http://frame:Hv7MpxJ5pBckigB@47.117.93.148/integrated-eureka/eureka/
-#CONFIG_SERVER_ID: poems-config
 
 mybatis-plus:
   configuration:
     log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+eureka:
+  client:
+    register-with-eureka: false
 
-integrated:
-  swagger:
-    title: energy_alarm_service 接口文档
-    description: --
-    version: v1.0.0
-    termsOfServiceUrl: v1.0.0
-    contact:
-      name: lixing
-    # 只展示com.persagy包下的接口
-    basePackage: "com.persagy"
-
-feign:
-  compression:
-    request:
-      enabled: false
-    response:
-      enabled: false