From 81e5148a30a32925209b9b3c1ada75976260a13b Mon Sep 17 00:00:00 2001
From: wangjx <1609724385@qq.com>
Date: Thu, 24 Jun 2021 18:03:00 +0800
Subject: [PATCH] =?UTF-8?q?nacos=E6=8C=81=E4=B9=85=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sentinel-dashboard/pom.xml | 6 ---
.../config/NacosPropertiesConfiguration.java | 41 ++++++++++++++-----
2 files changed, 31 insertions(+), 16 deletions(-)
diff --git a/sentinel-dashboard/pom.xml b/sentinel-dashboard/pom.xml
index 31e7da9b..3a39e453 100755
--- a/sentinel-dashboard/pom.xml
+++ b/sentinel-dashboard/pom.xml
@@ -136,12 +136,6 @@
test
-
-
- org.projectlombok
- lombok
- true
-
org.springframework.boot
spring-boot-configuration-processor
diff --git a/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/config/NacosPropertiesConfiguration.java b/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/config/NacosPropertiesConfiguration.java
index 2f687808..9f9c51ba 100644
--- a/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/config/NacosPropertiesConfiguration.java
+++ b/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;
+ }
}