调整支持二次开发

This commit is contained in:
wujiawei
2024-01-10 20:48:40 +08:00
parent 30fa62d90e
commit 2692672882
27 changed files with 464 additions and 15 deletions

View File

@@ -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 {
}

View File

@@ -1,16 +0,0 @@
package wu.framework.lazy.cloud.heartbeat.server;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* 云上云下-云上心跳服务器
*/
@Slf4j
@SpringBootApplication
public class LazyCloudHeartbeatServer {
public static void main(String[] args) {
SpringApplication.run(LazyCloudHeartbeatServer.class,args);
}
}

View File

@@ -0,0 +1,3 @@
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
wu.framework.lazy.cloud.heartbeat.server.EnableHeartbeatServerAutoConfiguration

View File

@@ -0,0 +1 @@
wu.framework.lazy.cloud.heartbeat.server.EnableHeartbeatServerAutoConfiguration

View File

@@ -1,12 +0,0 @@
spring:
data:
redis:
host: 192.168.17.221
port: 30553
password: laihui
database: 2
datasource:
url: jdbc:mysql://127.0.0.1:3306/middleground_cloud_netty_server?allowMultiQueries=true&useUnicode=true&autoReconnect=true&useAffectedRows=true&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&databaseTerm=SCHEMA
username: root
password: wujiawei
driver-class-name: com.mysql.cj.jdbc.Driver

View File

@@ -1,8 +0,0 @@
spring:
datasource:
url: jdbc:mysql://${MAIN_DB_HOST}/middleground_cloud_netty_server?allowMultiQueries=true&useUnicode=true&autoReconnect=true&useAffectedRows=true&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&databaseTerm=SCHEMA
username: middleground_cloud_netty_server
password: laihui
driver-class-name: com.mysql.cj.jdbc.Driver
main:
allow-bean-definition-overriding: true

View File

@@ -1,9 +0,0 @@
server:
port: 6001
spring:
profiles:
active: dev
lazy:
enable-auto-schema: true