diff --git a/bonus-modules/bonus-bracelet/pom.xml b/bonus-modules/bonus-bracelet/pom.xml new file mode 100644 index 0000000..cac85ab --- /dev/null +++ b/bonus-modules/bonus-bracelet/pom.xml @@ -0,0 +1,105 @@ + + + + com.bonus + bonus-modules + 24.6.0 + + 4.0.0 + + bonus-bracelet + + + bonus-bracelet手环模块 + + + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-config + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-sentinel + + + + + org.springframework.boot + spring-boot-starter-actuator + + + + + io.springfox + springfox-swagger-ui + ${swagger.fox.version} + + + + + com.mysql + mysql-connector-j + + + + + com.bonus + bonus-common-datasource + + + + + com.bonus + bonus-common-datascope + + + + + com.bonus + bonus-common-log + + + + + com.bonus + bonus-common-swagger + + + + com.github.ulisesbocchio + jasypt-spring-boot-starter + 3.0.2 + + + + + ${project.artifactId} + + + org.springframework.boot + spring-boot-maven-plugin + + + + repackage + + + + + + + + \ No newline at end of file diff --git a/bonus-modules/bonus-bracelet/src/main/resources/banner.txt b/bonus-modules/bonus-bracelet/src/main/resources/banner.txt new file mode 100644 index 0000000..fbd45f5 --- /dev/null +++ b/bonus-modules/bonus-bracelet/src/main/resources/banner.txt @@ -0,0 +1,10 @@ +Spring Boot Version: ${spring-boot.version} +Spring Application Name: ${spring.application.name} + _ _ + (_) | | + _ __ _ _ ___ _ _ _ ______ ___ _ _ ___ | |_ ___ _ __ ___ +| '__|| | | | / _ \ | | | || ||______|/ __|| | | |/ __|| __| / _ \| '_ ` _ \ +| | | |_| || (_) || |_| || | \__ \| |_| |\__ \| |_ | __/| | | | | | +|_| \__,_| \___/ \__, ||_| |___/ \__, ||___/ \__| \___||_| |_| |_| + __/ | __/ | + |___/ |___/ \ No newline at end of file diff --git a/bonus-modules/bonus-bracelet/src/main/resources/bootstrap.yml b/bonus-modules/bonus-bracelet/src/main/resources/bootstrap.yml new file mode 100644 index 0000000..f36ea6f --- /dev/null +++ b/bonus-modules/bonus-bracelet/src/main/resources/bootstrap.yml @@ -0,0 +1,33 @@ +# Tomcat +server: + port: 18086 + +# Spring +spring: + application: + # 应用名称 + name: bonus-bracelet + profiles: + # 环境配置 + active: dev + cloud: + nacos: + username: nacos + password: ENC(b8K5x5rjN7qdGdmhgzFayK/P6ZVbC/UNBHjx2SBJkoqU149aXRtJsFhDZcgpckFf) + discovery: + # 服务注册地址 + server-addr: 127.0.0.1:8848 + namespace: ljzhgd + config: + # 配置中心地址 + server-addr: 127.0.0.1:8848 + namespace: ENC(b8K5x5rjN7qdGdmhgzFayK/P6ZVbC/UNBHjx2SBJkoqU149aXRtJsFhDZcgpckFf) + # 配置文件格式 + file-extension: yml + # 共享配置 + shared-configs: + - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} +#加密组件 +jasypt: + encryptor: + password: Encrypt diff --git a/bonus-modules/bonus-bracelet/src/main/resources/logback.xml b/bonus-modules/bonus-bracelet/src/main/resources/logback.xml new file mode 100644 index 0000000..07d1710 --- /dev/null +++ b/bonus-modules/bonus-bracelet/src/main/resources/logback.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + ${log.pattern} + + + + + + ${log.path}/info.log + + + + ${log.path}/info.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + INFO + + ACCEPT + + DENY + + + + + ${log.path}/error.log + + + + ${log.path}/error.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + ERROR + + ACCEPT + + DENY + + + + + + + + + + + + + + + + + + \ No newline at end of file