This commit is contained in:
parent
a5913eae41
commit
05fe6dd72f
|
@ -6,6 +6,7 @@
|
|||
<modules>
|
||||
<module>biz-vordm</module>
|
||||
<module>vordm-crawl</module>
|
||||
<module>vordm-twitter</module>
|
||||
<!-- <module>kn-setting</module>-->
|
||||
</modules>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ RUN mkdir -p /kn/vordm
|
|||
|
||||
WORKDIR /kn/vordm
|
||||
|
||||
EXPOSE 8989
|
||||
EXPOSE 8987
|
||||
|
||||
ADD ./target/vordm-crawl.jar ./app.jar
|
||||
|
||||
|
|
|
@ -17,4 +17,58 @@
|
|||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</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>
|
||||
|
|
|
@ -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) {
|
||||
System.out.println("Hello world!");
|
||||
BladeApplication.run("vordm-twitter", TwitterApplication.class, args);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
wii:
|
||||
# 异构微服务的IP
|
||||
ip: 78.46.158.237
|
||||
# 异构微服务的端口
|
||||
port: 7000
|
||||
# 异构微服务的健康检查URL
|
||||
#health-check-route: /health
|
|
@ -1,5 +1,5 @@
|
|||
server:
|
||||
port: 8989
|
||||
port: 8980
|
||||
|
||||
spring:
|
||||
cloud:
|
||||
|
|
Loading…
Reference in New Issue