optimize:optimize config module code

pull/504/head
wulingxiao 3 years ago
parent 0af1d40acd
commit 35c439cc6f

@ -79,7 +79,6 @@
<protobuf-java.version>3.16.1</protobuf-java.version> <protobuf-java.version>3.16.1</protobuf-java.version>
<bcprov-jdk15on.version>1.69</bcprov-jdk15on.version> <bcprov-jdk15on.version>1.69</bcprov-jdk15on.version>
<guava.version>31.0.1-jre</guava.version> <guava.version>31.0.1-jre</guava.version>
<pushgateway.version>0.12.0</pushgateway.version>
<!-- Maven Plugin Versions --> <!-- Maven Plugin Versions -->
<maven-source-plugin.version>3.2.0</maven-source-plugin.version> <maven-source-plugin.version>3.2.0</maven-source-plugin.version>

@ -23,14 +23,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
<version>2.6.10</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.21.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>

@ -39,12 +39,12 @@ public class PolarisStatPushGatewayProperties {
private String address; private String address;
/** /**
* Service. * Service for pushGateway.
*/ */
private String service; private String service;
/** /**
* Namespace. * Namespace for pushGateway.
*/ */
private String namespace; private String namespace;

@ -16,7 +16,7 @@
{ {
"name": "spring.cloud.polaris.stat.pushgateway.namespace", "name": "spring.cloud.polaris.stat.pushgateway.namespace",
"type": "java.lang.String", "type": "java.lang.String",
"description": "Namespace.", "description": "Namespace for pushGateway.",
"sourceType": "com.tencent.cloud.plugin.pushgateway.PolarisStatPushGatewayProperties" "sourceType": "com.tencent.cloud.plugin.pushgateway.PolarisStatPushGatewayProperties"
}, },
{ {
@ -28,7 +28,7 @@
{ {
"name": "spring.cloud.polaris.stat.pushgateway.service", "name": "spring.cloud.polaris.stat.pushgateway.service",
"type": "java.lang.String", "type": "java.lang.String",
"description": "Service.", "description": "Service for pushGateway.",
"sourceType": "com.tencent.cloud.plugin.pushgateway.PolarisStatPushGatewayProperties" "sourceType": "com.tencent.cloud.plugin.pushgateway.PolarisStatPushGatewayProperties"
} }
] ]

@ -69,11 +69,6 @@
<artifactId>mockito-inline</artifactId> <artifactId>mockito-inline</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient_pushgateway</artifactId>
</dependency>
</dependencies> </dependencies>
</project> </project>
Loading…
Cancel
Save