test(test-query): 移除测试模块
This commit is contained in:
1
pom.xml
1
pom.xml
@@ -23,7 +23,6 @@
|
|||||||
<module>service-dependencies</module>
|
<module>service-dependencies</module>
|
||||||
<module>service-cli</module>
|
<module>service-cli</module>
|
||||||
<module>service-loki-query</module>
|
<module>service-loki-query</module>
|
||||||
<module>service-test-query</module>
|
|
||||||
<module>service-uploader</module>
|
<module>service-uploader</module>
|
||||||
<module>service-executor</module>
|
<module>service-executor</module>
|
||||||
<module>service-cloud-query</module>
|
<module>service-cloud-query</module>
|
||||||
|
|||||||
@@ -1,44 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<parent>
|
|
||||||
<groupId>com.lanyuanxiaoyao</groupId>
|
|
||||||
<artifactId>hudi-service</artifactId>
|
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
|
||||||
</parent>
|
|
||||||
|
|
||||||
<groupId>com.eshore.odcp.hudi.connector</groupId>
|
|
||||||
<artifactId>service-test-query</artifactId>
|
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.lanyuanxiaoyao</groupId>
|
|
||||||
<artifactId>service-dependencies</artifactId>
|
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.lanyuanxiaoyao</groupId>
|
|
||||||
<artifactId>service-configuration</artifactId>
|
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.cloud</groupId>
|
|
||||||
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-source-plugin</artifactId>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
package com.lanyuanxiaoyao.service.test;
|
|
||||||
|
|
||||||
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import org.springframework.boot.ApplicationArguments;
|
|
||||||
import org.springframework.boot.ApplicationRunner;
|
|
||||||
import org.springframework.boot.SpringApplication;
|
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
||||||
import org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration;
|
|
||||||
import org.springframework.cloud.client.discovery.DiscoveryClient;
|
|
||||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
||||||
import org.springframework.cloud.client.loadbalancer.LoadBalancerClient;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 启动类
|
|
||||||
*
|
|
||||||
* @author lanyuanxiaoyao
|
|
||||||
* @date 2023-07-12
|
|
||||||
*/
|
|
||||||
@SpringBootApplication(
|
|
||||||
scanBasePackages = {"com.lanyuanxiaoyao.service"},
|
|
||||||
exclude = {GsonAutoConfiguration.class}
|
|
||||||
)
|
|
||||||
@EnableDiscoveryClient
|
|
||||||
@EnableEncryptableProperties
|
|
||||||
public class TestApplication implements ApplicationRunner {
|
|
||||||
private static final Logger logger = LoggerFactory.getLogger(TestApplication.class);
|
|
||||||
private final DiscoveryClient discoveryClient;
|
|
||||||
private final LoadBalancerClient loadBalancerClient;
|
|
||||||
|
|
||||||
public TestApplication(DiscoveryClient discoveryClient, LoadBalancerClient loadBalancerClient) {
|
|
||||||
this.discoveryClient = discoveryClient;
|
|
||||||
this.loadBalancerClient = loadBalancerClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
|
||||||
SpringApplication.run(TestApplication.class, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void run(ApplicationArguments args) {
|
|
||||||
discoveryClient.getInstances("service-hudi-query").forEach(s -> logger.info("Discovery: {}", s));
|
|
||||||
logger.info("LoadBalance: {}", loadBalancerClient.choose("service-hudi-query"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
spring:
|
|
||||||
application:
|
|
||||||
name: service-test-query
|
|
||||||
profiles:
|
|
||||||
include: random-port,common,discovery,metrics
|
|
||||||
jasypt:
|
|
||||||
encryptor:
|
|
||||||
password: r#(R,P"Dp^A47>WSn:Wn].gs/+"v:q_Q*An~zF*g-@j@jtSTv5H/,S-3:R?r9R}.
|
|
||||||
Reference in New Issue
Block a user