From 48364eb76b180c9d222cc082f1a360e3b980bccd Mon Sep 17 00:00:00 2001 From: heqijun Date: Fri, 13 Jun 2025 14:38:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=84=E5=BB=BAsmsgateway=E7=BD=91=E5=85=B3?= =?UTF-8?q?=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- beacon-smsgateway/pom.xml | 58 +++++++++++++++++++ .../smmgateway/SmsGatewayApplication.java | 22 +++++++ .../src/main/resources/bootstrap.yml | 17 ++++++ beacon-strategy/pom.xml | 1 + pom.xml | 1 + 5 files changed, 99 insertions(+) create mode 100644 beacon-smsgateway/pom.xml create mode 100644 beacon-smsgateway/src/main/java/com/mashibing/smmgateway/SmsGatewayApplication.java create mode 100644 beacon-smsgateway/src/main/resources/bootstrap.yml 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