diff --git a/flossom-modules/flossom-mini-program/pom.xml b/flossom-modules/flossom-mini-program/pom.xml new file mode 100644 index 0000000..7635905 --- /dev/null +++ b/flossom-modules/flossom-mini-program/pom.xml @@ -0,0 +1,100 @@ + + + + com.flossom + flossom-modules + 3.6.3 + + 4.0.0 + + flossom-mini-program + + + flossom-mini-program微信小程序 + + + + + + + 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.flossom + flossom-common-datasource + + + + + com.flossom + flossom-common-datascope + + + + + com.flossom + flossom-common-log + + + + + com.flossom + flossom-common-swagger + + + + + + ${project.artifactId} + + + org.springframework.boot + spring-boot-maven-plugin + + + + repackage + + + + + + + + diff --git a/flossom-modules/flossom-mini-program/src/main/java/com/flossom/miniProgram/FlossomMiniProgramApplication.java b/flossom-modules/flossom-mini-program/src/main/java/com/flossom/miniProgram/FlossomMiniProgramApplication.java new file mode 100644 index 0000000..26d3055 --- /dev/null +++ b/flossom-modules/flossom-mini-program/src/main/java/com/flossom/miniProgram/FlossomMiniProgramApplication.java @@ -0,0 +1,34 @@ +package com.flossom.system; + +import com.flossom.common.security.annotation.EnableCustomConfig; +import com.flossom.common.security.annotation.EnableRyFeignClients; +import com.flossom.common.swagger.annotation.EnableCustomSwagger2; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + * 微信小程序模块 + * + * @author flossom + */ +@EnableCustomConfig +@EnableCustomSwagger2 +@EnableRyFeignClients +@SpringBootApplication +public class FlossomMiniProgramApplication +{ + public static void main(String[] args) + { + SpringApplication.run(FlossomMiniProgramApplication.class, args); + System.out.println("(♥◠‿◠)ノ゙ 花至微信小程序模块启动成功 ლ(´ڡ`ლ)゙ \n" + + " .-------. ____ __ \n" + + " | _ _ \\ \\ \\ / / \n" + + " | ( ' ) | \\ _. / ' \n" + + " |(_ o _) / _( )_ .' \n" + + " | (_,_).' __ ___(_ o _)' \n" + + " | |\\ \\ | || |(_,_)' \n" + + " | | \\ `' /| `-' / \n" + + " | | \\ / \\ / \n" + + " ''-' `'-' `-..-' "); + } +} diff --git a/flossom-modules/flossom-mini-program/src/main/resources/banner.txt b/flossom-modules/flossom-mini-program/src/main/resources/banner.txt new file mode 100644 index 0000000..fbd45f5 --- /dev/null +++ b/flossom-modules/flossom-mini-program/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/flossom-modules/flossom-mini-program/src/main/resources/bootstrap.yml b/flossom-modules/flossom-mini-program/src/main/resources/bootstrap.yml new file mode 100644 index 0000000..8454283 --- /dev/null +++ b/flossom-modules/flossom-mini-program/src/main/resources/bootstrap.yml @@ -0,0 +1,25 @@ +# Tomcat +server: + port: 9204 + +# Spring +spring: + application: + # 应用名称 + name: flossom-mini-program + profiles: + # 环境配置 + active: dev + cloud: + nacos: + discovery: + # 服务注册地址 + server-addr: 127.0.0.1:8848 + config: + # 配置中心地址 + server-addr: 127.0.0.1:8848 + # 配置文件格式 + file-extension: yml + # 共享配置 + shared-configs: + - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} diff --git a/flossom-modules/flossom-mini-program/src/main/resources/logback.xml b/flossom-modules/flossom-mini-program/src/main/resources/logback.xml new file mode 100644 index 0000000..0fe7ffb --- /dev/null +++ b/flossom-modules/flossom-mini-program/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 + + + + + + + + + + + + + + + + + + diff --git a/flossom-modules/pom.xml b/flossom-modules/pom.xml index b4c303d..6979f2c 100644 --- a/flossom-modules/pom.xml +++ b/flossom-modules/pom.xml @@ -13,6 +13,7 @@ flossom-gen flossom-job flossom-file + flossom-mini-program flossom-modules