diff --git a/beacon-smsgateway/pom.xml b/beacon-smsgateway/pom.xml new file mode 100644 index 0000000..e70e8b1 --- /dev/null +++ b/beacon-smsgateway/pom.xml @@ -0,0 +1,58 @@ + + + 4.0.0 + + com.mashibing + beacon-cloud + 1.0-SNAPSHOT + + + beacon-smsgateway + + + + + org.springframework.boot + spring-boot-starter-web + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-config + + + + org.springframework.cloud + spring-cloud-starter-openfeign + + + + org.springframework.boot + spring-boot-starter-amqp + + + + org.springframework.boot + spring-boot-starter-test + + + + org.projectlombok + lombok + + + + com.mashibing + beacon-common + 1.0-SNAPSHOT + + + + \ No newline at end of file diff --git a/beacon-smsgateway/src/main/java/com/mashibing/smmgateway/SmsGatewayApplication.java b/beacon-smsgateway/src/main/java/com/mashibing/smmgateway/SmsGatewayApplication.java new file mode 100644 index 0000000..d573d22 --- /dev/null +++ b/beacon-smsgateway/src/main/java/com/mashibing/smmgateway/SmsGatewayApplication.java @@ -0,0 +1,22 @@ +package com.mashibing.smmgateway; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.client.discovery.EnableDiscoveryClient; +import org.springframework.cloud.openfeign.EnableFeignClients; + +/** + * @author heqijun + * @ClassName: SmsGatewayApplication + * @Description: SmsGatewayApplication网关启动类 + * @date 2025/6/13 14:32 + */ + +@SpringBootApplication +@EnableFeignClients +@EnableDiscoveryClient +public class SmsGatewayApplication { + public static void main(String[] args) { + SpringApplication.run(SmsGatewayApplication.class, args); + } +} diff --git a/beacon-smsgateway/src/main/resources/bootstrap.yml b/beacon-smsgateway/src/main/resources/bootstrap.yml new file mode 100644 index 0000000..58dcbfb --- /dev/null +++ b/beacon-smsgateway/src/main/resources/bootstrap.yml @@ -0,0 +1,17 @@ +# 服务名称 +spring: + application: + name: beacon-smsgateway + # 多环境 + profiles: + active: dev + # nacos注册中心地址 + cloud: + nacos: + discovery: + server-addr: 192.168.1.13:8848 + # nacos配置中心地址: + config: + server-addr: 192.168.1.13:8848 + file-extension: yml + # beacon-smsgateway-dev.yml \ No newline at end of file diff --git a/beacon-strategy/pom.xml b/beacon-strategy/pom.xml index 99bcb85..269df6f 100644 --- a/beacon-strategy/pom.xml +++ b/beacon-strategy/pom.xml @@ -29,6 +29,7 @@ com.alibaba.cloud spring-cloud-starter-alibaba-nacos-config + org.springframework.cloud spring-cloud-starter-openfeign diff --git a/pom.xml b/pom.xml index 81e7138..ca3d941 100644 --- a/pom.xml +++ b/pom.xml @@ -16,6 +16,7 @@ beacon-strategy beacon-search beacon-push + beacon-smsgateway