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>
<bcprov-jdk15on.version>1.69</bcprov-jdk15on.version>
<guava.version>31.0.1-jre</guava.version>
<pushgateway.version>0.12.0</pushgateway.version>
<!-- Maven Plugin Versions -->
<maven-source-plugin.version>3.2.0</maven-source-plugin.version>

@ -23,14 +23,7 @@
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-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>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

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

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

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