This commit is contained in:
王洪庆 2023-04-24 19:28:56 +08:00
parent a5913eae41
commit 05fe6dd72f
6 changed files with 73 additions and 5 deletions

View File

@ -6,6 +6,7 @@
<modules> <modules>
<module>biz-vordm</module> <module>biz-vordm</module>
<module>vordm-crawl</module> <module>vordm-crawl</module>
<module>vordm-twitter</module>
<!-- <module>kn-setting</module>--> <!-- <module>kn-setting</module>-->
</modules> </modules>

View File

@ -6,7 +6,7 @@ RUN mkdir -p /kn/vordm
WORKDIR /kn/vordm WORKDIR /kn/vordm
EXPOSE 8989 EXPOSE 8987
ADD ./target/vordm-crawl.jar ./app.jar ADD ./target/vordm-crawl.jar ./app.jar

View File

@ -17,4 +17,58 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<dependencies>
<dependency>
<groupId>com.kening.platform</groupId>
<artifactId>kn-launcher</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-undertow</artifactId>
</exclusion>
<exclusion>
<artifactId>wildfly-common</artifactId>
<groupId>org.wildfly.common</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.itmuch</groupId>
<artifactId>spring-cloud-wii</artifactId>
<version>2.2.6.RELEASE</version>
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-client</artifactId>
</dependency>
<!--Hystrix-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
<exclusion>
<artifactId>HdrHistogram</artifactId>
<groupId>org.hdrhistogram</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- Nacos -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
</dependencies>
</project> </project>

View File

@ -1,7 +1,13 @@
package com.kening.platform; package com.kening.crawl.twitter;
public class Main { import org.springblade.core.launch.BladeApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.context.annotation.ComponentScan;
@SpringCloudApplication
@ComponentScan({"org.springblade", "com.kening.crawl.twitter"})
public class TwitterApplication {
public static void main(String[] args) { public static void main(String[] args) {
System.out.println("Hello world!"); BladeApplication.run("vordm-twitter", TwitterApplication.class, args);
} }
} }

View File

@ -0,0 +1,7 @@
wii:
# 异构微服务的IP
ip: 78.46.158.237
# 异构微服务的端口
port: 7000
# 异构微服务的健康检查URL
#health-check-route: /health

View File

@ -1,5 +1,5 @@
server: server:
port: 8989 port: 8980
spring: spring:
cloud: cloud: