mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-07 13:57:56 +08:00
调整支持二次开发
This commit is contained in:
parent
30fa62d90e
commit
2692672882
3
pom.xml
3
pom.xml
@ -23,6 +23,9 @@
|
|||||||
<module>wu-lazy-cloud-heartbeat-server</module>
|
<module>wu-lazy-cloud-heartbeat-server</module>
|
||||||
<module>wu-lazy-cloud-heartbeat-client</module>
|
<module>wu-lazy-cloud-heartbeat-client</module>
|
||||||
<module>wu-lazy-cloud-heartbeat-common</module>
|
<module>wu-lazy-cloud-heartbeat-common</module>
|
||||||
|
|
||||||
|
<!-- 样例 -->
|
||||||
|
<module>wu-lazy-cloud-heartbeat-sample</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
@ -37,20 +37,5 @@
|
|||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-deploy-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<skip>true</skip>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
</project>
|
</project>
|
@ -0,0 +1,8 @@
|
|||||||
|
package wu.framework.lazy.cloud.heartbeat.client;
|
||||||
|
|
||||||
|
import org.springframework.context.annotation.ComponentScan;
|
||||||
|
|
||||||
|
|
||||||
|
@ComponentScan(basePackages = "wu.framework.lazy.cloud.heartbeat.client")
|
||||||
|
public class EnableHeartbeatClientAutoConfiguration {
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
# Auto Configure
|
||||||
|
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||||
|
wu.framework.lazy.cloud.heartbeat.client.EnableHeartbeatClientAutoConfiguration
|
@ -0,0 +1 @@
|
|||||||
|
wu.framework.lazy.cloud.heartbeat.client.EnableHeartbeatClientAutoConfiguration
|
47
wu-lazy-cloud-heartbeat-sample/pom.xml
Normal file
47
wu-lazy-cloud-heartbeat-sample/pom.xml
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>top.wu2020</groupId>
|
||||||
|
<artifactId>wu-lazy-cloud-network</artifactId>
|
||||||
|
<version>1.2.1-JDK17-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<artifactId>wu-lazy-cloud-heartbeat-sample</artifactId>
|
||||||
|
|
||||||
|
<name>wu-lazy-cloud-heartbeat-sample</name>
|
||||||
|
<description>wu-lazy-cloud-heartbeat-sample</description>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
<modules>
|
||||||
|
<!-- 样例 -->
|
||||||
|
<module>wu-lazy-cloud-heartbeat-client-sample</module>
|
||||||
|
<module>wu-lazy-cloud-heartbeat-server-sample</module>
|
||||||
|
</modules>
|
||||||
|
<properties>
|
||||||
|
<java.version>17</java.version>
|
||||||
|
</properties>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-test</artifactId>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
</project>
|
@ -0,0 +1,56 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>top.wu2020</groupId>
|
||||||
|
<artifactId>wu-lazy-cloud-network</artifactId>
|
||||||
|
<version>1.2.1-JDK17-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
<groupId>top.wu2020</groupId>
|
||||||
|
<artifactId>wu-lazy-cloud-heartbeat-client</artifactId>
|
||||||
|
<version>1.2.1-JDK17-SNAPSHOT</version>
|
||||||
|
<description>云下心跳客户端</description>
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>Apache License, Version 2.0</name>
|
||||||
|
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
<properties>
|
||||||
|
<maven.compiler.target>17</maven.compiler.target>
|
||||||
|
<maven.compiler.source>17</maven.compiler.source>
|
||||||
|
</properties>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>top.wu2020</groupId>
|
||||||
|
<artifactId>wu-lazy-cloud-heartbeat-common</artifactId>
|
||||||
|
<version>1.2.1-JDK17-SNAPSHOT</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.alibaba</groupId>
|
||||||
|
<artifactId>fastjson</artifactId>
|
||||||
|
<version>2.0.33</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>top.wu2020</groupId>
|
||||||
|
<artifactId>wu-database-lazy-plus-starter</artifactId>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-deploy-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
@ -0,0 +1,22 @@
|
|||||||
|
FROM registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-framework-parent:jdk-17.0.7-x64
|
||||||
|
MAINTAINER wujiawei <1207537021@qq.com>
|
||||||
|
|
||||||
|
RUN echo "Asia/Shanghai" > /etc/timezone
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ENV APP_JAR_NAME=$APP_NAME \
|
||||||
|
JAVA_OPTS="-Xms512m -Xmx1024m -Djava.security.egd=file:/dev/./urandom" \
|
||||||
|
PARAMS=""
|
||||||
|
|
||||||
|
|
||||||
|
COPY target/*.jar /app.jar
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ENTRYPOINT exec java -server $JAVA_OPTS -jar /app.jar $PARAMS
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,16 @@
|
|||||||
|
FROM alpine
|
||||||
|
|
||||||
|
MAINTAINER wujiawei <1207537021@qq.com>
|
||||||
|
|
||||||
|
RUN echo "Asia/Shanghai" > /etc/timezone
|
||||||
|
|
||||||
|
|
||||||
|
COPY target/middleground-under-cloud-heartbeat-client /native-app
|
||||||
|
|
||||||
|
ENTRYPOINT ["/bin/sh" ,"-c", "exec ./native-app"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,57 @@
|
|||||||
|
|
||||||
|
|
||||||
|
#### 构建native 镜像
|
||||||
|
```shell
|
||||||
|
mvn clean compile
|
||||||
|
mvn spring-boot:process-aot -Pnative
|
||||||
|
|
||||||
|
mvn native:build -Pnative
|
||||||
|
```
|
||||||
|
### 构建docker镜像
|
||||||
|
```shell
|
||||||
|
docker build -t docker-registry.laihui.com/middleground/middleground-under-cloud-heartbeat-client:middleground-2.4.2-native-SNAPSHOT_latest -f Native-Dockerfile .
|
||||||
|
docker push docker-registry.laihui.com/middleground/middleground-under-cloud-heartbeat-client:middleground-2.4.2-native-SNAPSHOT_latest
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## BUILD IMAGE
|
||||||
|
|
||||||
|
```shell
|
||||||
|
|
||||||
|
#docker login --username=1207537021@qq.com registry.cn-hangzhou.aliyuncs.com
|
||||||
|
|
||||||
|
docker build -t registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-lazy-cloud-heartbeat-client:server-jdk17-master .
|
||||||
|
docker push registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-lazy-cloud-heartbeat-client:server-jdk17-master
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### run
|
||||||
|
```shell
|
||||||
|
docker run -d -it --name client -e spring.middleground.netty.inet-host=124.222.48.62 -e spring.middleground.netty.inet-port=30676 -e spring.middleground.netty.client-id=node1 registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-lazy-cloud-heartbeat-client:server-jdk17-master
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
```shell
|
||||||
|
gu install native-image
|
||||||
|
|
||||||
|
gu list
|
||||||
|
|
||||||
|
mvn native:build
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell
|
||||||
|
mvn clean native:compile -Pnative
|
||||||
|
```
|
||||||
|
|
||||||
|
```RUN
|
||||||
|
docker run -d -it -p 18080:18080 --name wu-lazy-cloud-heartbeat-client registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-lazy-cloud-heartbeat-client:server-jdk17-master
|
||||||
|
|
||||||
|
http://127.0.0.1:18080/swagger-ui/index.html
|
||||||
|
|
||||||
|
|
||||||
|
```
|
@ -0,0 +1,44 @@
|
|||||||
|
<?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">
|
||||||
|
<parent>
|
||||||
|
<groupId>top.wu2020</groupId>
|
||||||
|
<artifactId>wu-lazy-cloud-heartbeat-sample</artifactId>
|
||||||
|
<version>1.2.1-JDK17-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<artifactId>wu-lazy-cloud-heartbeat-client-sample</artifactId>
|
||||||
|
<description>云下心跳客户端</description>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<maven.compiler.source>17</maven.compiler.source>
|
||||||
|
<maven.compiler.target>17</maven.compiler.target>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>top.wu2020</groupId>
|
||||||
|
<artifactId>wu-lazy-cloud-heartbeat-client</artifactId>
|
||||||
|
<version>1.2.1-JDK17-SNAPSHOT</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-deploy-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
</project>
|
@ -0,0 +1,68 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>top.wu2020</groupId>
|
||||||
|
<artifactId>wu-lazy-cloud-network</artifactId>
|
||||||
|
<version>1.2.1-JDK17-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
<groupId>top.wu2020</groupId>
|
||||||
|
<artifactId>wu-lazy-cloud-heartbeat-server</artifactId>
|
||||||
|
<version>1.2.1-JDK17-SNAPSHOT</version>
|
||||||
|
<description>云上心跳服务端</description>
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>Apache License, Version 2.0</name>
|
||||||
|
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
<properties>
|
||||||
|
<maven.compiler.target>17</maven.compiler.target>
|
||||||
|
<maven.compiler.source>17</maven.compiler.source>
|
||||||
|
</properties>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>top.wu2020</groupId>
|
||||||
|
<artifactId>wu-framework-web</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>top.wu2020</groupId>
|
||||||
|
<artifactId>wu-lazy-cloud-heartbeat-common</artifactId>
|
||||||
|
<version>1.2.1-JDK17-SNAPSHOT</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>mysql</groupId>
|
||||||
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
|
<version>8.0.33</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>top.wu2020</groupId>
|
||||||
|
<artifactId>wu-database-lazy-starter</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>top.wu2020</groupId>
|
||||||
|
<artifactId>wu-database-lazy-plus-starter</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.alibaba</groupId>
|
||||||
|
<artifactId>fastjson</artifactId>
|
||||||
|
<version>2.0.33</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-deploy-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
@ -0,0 +1,22 @@
|
|||||||
|
FROM registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-framework-parent:jdk-17.0.7-x64
|
||||||
|
MAINTAINER wujiawei <1207537021@qq.com>
|
||||||
|
|
||||||
|
RUN echo "Asia/Shanghai" > /etc/timezone
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ENV APP_JAR_NAME=$APP_NAME \
|
||||||
|
JAVA_OPTS="-Xms512m -Xmx1024m -Djava.security.egd=file:/dev/./urandom" \
|
||||||
|
PARAMS=""
|
||||||
|
|
||||||
|
|
||||||
|
COPY target/*.jar /app.jar
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ENTRYPOINT exec java -server $JAVA_OPTS -jar /app.jar $PARAMS
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,33 @@
|
|||||||
|
# DOCKER JDK IMAGE
|
||||||
|
|
||||||
|
## BUILD IMAGE
|
||||||
|
|
||||||
|
```shell
|
||||||
|
|
||||||
|
#docker login --username=1207537021@qq.com registry.cn-hangzhou.aliyuncs.com
|
||||||
|
|
||||||
|
docker build -t registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-lazy-cloud-heartbeat-server:server-jdk17-master .
|
||||||
|
docker push registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-lazy-cloud-heartbeat-server:server-jdk17-master
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell
|
||||||
|
gu install native-image
|
||||||
|
|
||||||
|
gu list
|
||||||
|
|
||||||
|
mvn native:build
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell
|
||||||
|
mvn clean native:compile -Pnative
|
||||||
|
```
|
||||||
|
|
||||||
|
```RUN
|
||||||
|
docker run -d -it -p 18080:18080 --name wu-lazy-cloud-heartbeat-server registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-lazy-cloud-heartbeat-server:server-jdk17-master
|
||||||
|
|
||||||
|
http://127.0.0.1:18080/swagger-ui/index.html
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
|
@ -0,0 +1,73 @@
|
|||||||
|
<?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">
|
||||||
|
<parent>
|
||||||
|
<groupId>top.wu2020</groupId>
|
||||||
|
<artifactId>wu-lazy-cloud-heartbeat-sample</artifactId>
|
||||||
|
<version>1.2.1-JDK17-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<artifactId>wu-lazy-cloud-heartbeat-server-sample</artifactId>
|
||||||
|
<description>云上心跳服务端</description>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<maven.compiler.source>17</maven.compiler.source>
|
||||||
|
<maven.compiler.target>17</maven.compiler.target>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>top.wu2020</groupId>
|
||||||
|
<artifactId>wu-framework-web</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<!-- 通用心跳包 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>top.wu2020</groupId>
|
||||||
|
<artifactId>wu-lazy-cloud-heartbeat-common</artifactId>
|
||||||
|
<version>1.2.1-JDK17-SNAPSHOT</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- 数据库 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>mysql</groupId>
|
||||||
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
|
<version>8.0.33</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>top.wu2020</groupId>
|
||||||
|
<artifactId>wu-database-lazy-starter</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>top.wu2020</groupId>
|
||||||
|
<artifactId>wu-database-lazy-plus-starter</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.alibaba</groupId>
|
||||||
|
<artifactId>fastjson</artifactId>
|
||||||
|
<version>2.0.33</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>top.wu2020</groupId>
|
||||||
|
<artifactId>wu-lazy-cloud-heartbeat-server</artifactId>
|
||||||
|
<version>1.2.1-JDK17-SNAPSHOT</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-deploy-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
@ -0,0 +1,7 @@
|
|||||||
|
package wu.framework.lazy.cloud.heartbeat.server;
|
||||||
|
|
||||||
|
import org.springframework.context.annotation.ComponentScan;
|
||||||
|
|
||||||
|
@ComponentScan(basePackages = "wu.framework.lazy.cloud.heartbeat.server")
|
||||||
|
public class EnableHeartbeatServerAutoConfiguration {
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
# Auto Configure
|
||||||
|
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||||
|
wu.framework.lazy.cloud.heartbeat.server.EnableHeartbeatServerAutoConfiguration
|
@ -0,0 +1 @@
|
|||||||
|
wu.framework.lazy.cloud.heartbeat.server.EnableHeartbeatServerAutoConfiguration
|
Loading…
x
Reference in New Issue
Block a user