diff --git a/sgzb-modules/pom.xml b/sgzb-modules/pom.xml index fa478b0..685378a 100644 --- a/sgzb-modules/pom.xml +++ b/sgzb-modules/pom.xml @@ -15,6 +15,7 @@ sgzb-file zlpt-order zlpt-equip + zlpt-portal sgzb-modules diff --git a/sgzb-modules/zlpt-portal/pom.xml b/sgzb-modules/zlpt-portal/pom.xml new file mode 100644 index 0000000..1caeea4 --- /dev/null +++ b/sgzb-modules/zlpt-portal/pom.xml @@ -0,0 +1,31 @@ + + + 4.0.0 + + com.bonus.sgzb + sgzb-modules + 3.6.3 + + + com.bonus.zlpt.portal + zlpt-modules-portal + + + 17 + 17 + UTF-8 + + + + com.bonus.sgzb + sgzb-common-security + + + com.bonus.sgzb + sgzb-common-swagger + + + + \ No newline at end of file diff --git a/sgzb-modules/zlpt-portal/src/main/java/com/bonus/zlpt/portal/ZlptPortalApplication.java b/sgzb-modules/zlpt-portal/src/main/java/com/bonus/zlpt/portal/ZlptPortalApplication.java new file mode 100644 index 0000000..06ba866 --- /dev/null +++ b/sgzb-modules/zlpt-portal/src/main/java/com/bonus/zlpt/portal/ZlptPortalApplication.java @@ -0,0 +1,35 @@ +package com.bonus.zlpt.portal; + +import com.bonus.sgzb.common.security.annotation.EnableCustomConfig; +import com.bonus.sgzb.common.security.annotation.EnableRyFeignClients; +import com.bonus.sgzb.common.swagger.annotation.EnableCustomSwagger2; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + * 门户模块 + * + * @author xsheng + * @date 2023-12-01 + */ +@EnableCustomConfig +@EnableCustomSwagger2 +@EnableRyFeignClients +@SpringBootApplication +public class ZlptPortalApplication +{ + public static void main(String[] args) + { + SpringApplication.run(ZlptPortalApplication.class, args); + System.out.println("(♥◠‿◠)ノ゙ 门户模块启动成功 ლ(´ڡ`ლ)゙ \n" + + " .-------. ____ __ \n" + + " | _ _ \\ \\ \\ / / \n" + + " | ( ' ) | \\ _. / ' \n" + + " |(_ o _) / _( )_ .' \n" + + " | (_,_).' __ ___(_ o _)' \n" + + " | |\\ \\ | || |(_,_)' \n" + + " | | \\ `' /| `-' / \n" + + " | | \\ / \\ / \n" + + " ''-' `'-' `-..-' "); + } +} diff --git a/sgzb-modules/zlpt-portal/src/main/resources/banner.txt b/sgzb-modules/zlpt-portal/src/main/resources/banner.txt new file mode 100644 index 0000000..0b9cd42 --- /dev/null +++ b/sgzb-modules/zlpt-portal/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/sgzb-modules/zlpt-portal/src/main/resources/bootstrap.yml b/sgzb-modules/zlpt-portal/src/main/resources/bootstrap.yml new file mode 100644 index 0000000..1e51866 --- /dev/null +++ b/sgzb-modules/zlpt-portal/src/main/resources/bootstrap.yml @@ -0,0 +1,27 @@ +# Tomcat +server: + port: 9207 + +# Spring +spring: + application: + # 应用名称 + name: zlpt-portal + profiles: + # 环境配置 + active: zlpt_cloud_dev + cloud: + nacos: + discovery: + # 服务注册地址 + server-addr: 127.0.0.1:8848 + namespace: zlpt_cloud_dev + config: + # 配置中心地址 + server-addr: 127.0.0.1:8848 + namespace: zlpt_cloud_dev + # 配置文件格式 + file-extension: yml + # 共享配置 + shared-configs: + - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} diff --git a/sgzb-modules/zlpt-portal/src/main/resources/logback.xml b/sgzb-modules/zlpt-portal/src/main/resources/logback.xml new file mode 100644 index 0000000..e177e03 --- /dev/null +++ b/sgzb-modules/zlpt-portal/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