From 9a6b2104eedddb7b2c17d89c747e7aa4aa20e5dd Mon Sep 17 00:00:00 2001 From: xjs <1294405880@qq.com> Date: Fri, 21 Jan 2022 17:15:34 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=90=8E=E7=AB=AF=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=A8=A1=E5=9D=97=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/business/tools/apitools/index.vue | 19 +++-- xjs-business/pom.xml | 1 + xjs-business/xjs-business-statistics/pom.xml | 28 +++++++ .../main/java/com/xjs/XjsStatisticsApp.java | 23 ++++++ .../src/main/resources/banner.txt | 8 ++ .../src/main/resources/bootstrap.yml | 29 +++++++ .../src/main/resources/logback.xml | 76 +++++++++++++++++++ .../src/main/resources/rebel.xml | 16 ++++ 8 files changed, 193 insertions(+), 7 deletions(-) create mode 100644 xjs-business/xjs-business-statistics/pom.xml create mode 100644 xjs-business/xjs-business-statistics/src/main/java/com/xjs/XjsStatisticsApp.java create mode 100644 xjs-business/xjs-business-statistics/src/main/resources/banner.txt create mode 100644 xjs-business/xjs-business-statistics/src/main/resources/bootstrap.yml create mode 100644 xjs-business/xjs-business-statistics/src/main/resources/logback.xml create mode 100644 xjs-business/xjs-business-statistics/src/main/resources/rebel.xml diff --git a/ruoyi-ui/src/views/business/tools/apitools/index.vue b/ruoyi-ui/src/views/business/tools/apitools/index.vue index 02b8bf65..b23fddde 100644 --- a/ruoyi-ui/src/views/business/tools/apitools/index.vue +++ b/ruoyi-ui/src/views/business/tools/apitools/index.vue @@ -30,7 +30,12 @@ - + 搜索 @@ -221,23 +226,23 @@ diff --git a/xjs-business/pom.xml b/xjs-business/pom.xml index 7fcead5b..33deee50 100644 --- a/xjs-business/pom.xml +++ b/xjs-business/pom.xml @@ -21,6 +21,7 @@ xjs-business-warning xjs-business-monitor xjs-business-log + xjs-business-statistics diff --git a/xjs-business/xjs-business-statistics/pom.xml b/xjs-business/xjs-business-statistics/pom.xml new file mode 100644 index 00000000..730c1247 --- /dev/null +++ b/xjs-business/xjs-business-statistics/pom.xml @@ -0,0 +1,28 @@ + + + + xjs-business + com.xjs + 3.3.0 + + 4.0.0 + 业务模块-统计模块 + + xjs-business-statistics + + + 11 + 11 + + + + + com.xjs + xjs-business-common + 3.3.0 + + + + \ No newline at end of file diff --git a/xjs-business/xjs-business-statistics/src/main/java/com/xjs/XjsStatisticsApp.java b/xjs-business/xjs-business-statistics/src/main/java/com/xjs/XjsStatisticsApp.java new file mode 100644 index 00000000..cde3644c --- /dev/null +++ b/xjs-business/xjs-business-statistics/src/main/java/com/xjs/XjsStatisticsApp.java @@ -0,0 +1,23 @@ +package com.xjs; + +import com.ruoyi.common.security.annotation.EnableCustomConfig; +import com.ruoyi.common.security.annotation.EnableRyFeignClients; +import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + * 统计模块启动器 + * + * @author xiejs + * @since 2022-01-21 + */ +@SpringBootApplication +@EnableCustomConfig +@EnableCustomSwagger2 +@EnableRyFeignClients +public class XjsStatisticsApp { + public static void main(String[] args) { + SpringApplication.run(XjsStatisticsApp.class, args); + } +} diff --git a/xjs-business/xjs-business-statistics/src/main/resources/banner.txt b/xjs-business/xjs-business-statistics/src/main/resources/banner.txt new file mode 100644 index 00000000..6f3fceaa --- /dev/null +++ b/xjs-business/xjs-business-statistics/src/main/resources/banner.txt @@ -0,0 +1,8 @@ +Spring Boot Version: ${spring-boot.version} +Spring Application Name: ${spring.application.name} +____ ___ ____. _________ _____.___._____.___.________ _________ +\ \/ / | |/ _____/ \__ | |\__ | |\______ \ / _____/ + \ / | |\_____ \ ______ / | | / | | | | \ \_____ \ + / \/\__| |/ \ /_____/ \____ | \____ | | ` \/ \ +/___/\ \________/_______ / / ______| / ______|/_______ /_______ / + \_/ \/ \/ \/ \/ \/ diff --git a/xjs-business/xjs-business-statistics/src/main/resources/bootstrap.yml b/xjs-business/xjs-business-statistics/src/main/resources/bootstrap.yml new file mode 100644 index 00000000..03e3a6fe --- /dev/null +++ b/xjs-business/xjs-business-statistics/src/main/resources/bootstrap.yml @@ -0,0 +1,29 @@ +# Tomcat +server: + port: 9905 + +# Spring +spring: + application: + # 应用名称 + name: xjs-statistics + 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} + #配置组 + group: xjs + #命名空间 + namespace: xjs-666 diff --git a/xjs-business/xjs-business-statistics/src/main/resources/logback.xml b/xjs-business/xjs-business-statistics/src/main/resources/logback.xml new file mode 100644 index 00000000..ab204f7e --- /dev/null +++ b/xjs-business/xjs-business-statistics/src/main/resources/logback.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + ${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 diff --git a/xjs-business/xjs-business-statistics/src/main/resources/rebel.xml b/xjs-business/xjs-business-statistics/src/main/resources/rebel.xml new file mode 100644 index 00000000..d80f92c8 --- /dev/null +++ b/xjs-business/xjs-business-statistics/src/main/resources/rebel.xml @@ -0,0 +1,16 @@ + + + + + + xjs-business-statistics + + + + + + +