wangjx преди 3 години
родител
ревизия
81e5148a30
променени са 2 файла, в които са добавени 31 реда и са изтрити 16 реда
  1. +0
    -6
      sentinel-dashboard/pom.xml
  2. +31
    -10
      sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/config/NacosPropertiesConfiguration.java

+ 0
- 6
sentinel-dashboard/pom.xml Целия файл

@@ -136,12 +136,6 @@
<scope>test</scope>
</dependency>

<!--lombok 注解-->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>


+ 31
- 10
sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/config/NacosPropertiesConfiguration.java Целия файл

@@ -17,8 +17,6 @@ package com.alibaba.csp.sentinel.dashboard.config;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.boot.context.properties.ConfigurationProperties;
import lombok.Getter;
import lombok.Setter;
import org.springframework.stereotype.Component;

/**
@@ -29,17 +27,40 @@ import org.springframework.stereotype.Component;
@ConfigurationProperties(prefix="sentinel.nacos")
public class NacosPropertiesConfiguration {

@Getter
@Setter
private String serverAddr;
@Getter
@Setter
private String dataId;
@Getter
@Setter
private String groupId;
@Getter
@Setter
private String namespace;

public String getServerAddr() {
return serverAddr;
}

public String getDataId() {
return dataId;
}

public String getGroupId() {
return groupId;
}

public String getNamespace() {
return namespace;
}

public void setServerAddr(String serverAddr) {
this.serverAddr = serverAddr;
}

public void setDataId(String dataId) {
this.dataId = dataId;
}

public void setGroupId(String groupId) {
this.groupId = groupId;
}

public void setNamespace(String namespace) {
this.namespace = namespace;
}
}

Loading…
Отказ
Запис