From eb10ad994d2c2390369a2a8d368edd9ed2ea45f5 Mon Sep 17 00:00:00 2001
From: xjs <1294405880@qq.com>
Date: Thu, 27 Jan 2022 14:31:13 +0800
Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=96=B0=E5=A2=9E=E5=8D=9A=E5=AE=A2?=
=?UTF-8?q?=E6=9C=8D=E5=8A=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
xjs-business/pom.xml | 1 +
xjs-business/xjs-business-blog/pom.xml | 27 +++++++
.../src/main/java/com/xjs/XjsBlogApp.java | 22 ++++++
.../src/main/resources/banner.txt | 8 ++
.../src/main/resources/bootstrap.yml | 31 ++++++++
.../src/main/resources/logback.xml | 76 +++++++++++++++++++
.../src/main/resources/rebel.xml | 16 ++++
7 files changed, 181 insertions(+)
create mode 100644 xjs-business/xjs-business-blog/pom.xml
create mode 100644 xjs-business/xjs-business-blog/src/main/java/com/xjs/XjsBlogApp.java
create mode 100644 xjs-business/xjs-business-blog/src/main/resources/banner.txt
create mode 100644 xjs-business/xjs-business-blog/src/main/resources/bootstrap.yml
create mode 100644 xjs-business/xjs-business-blog/src/main/resources/logback.xml
create mode 100644 xjs-business/xjs-business-blog/src/main/resources/rebel.xml
diff --git a/xjs-business/pom.xml b/xjs-business/pom.xml
index d7b7395a..ffa19332 100644
--- a/xjs-business/pom.xml
+++ b/xjs-business/pom.xml
@@ -23,6 +23,7 @@
xjs-business-log
xjs-business-statistics
xjs-business-webmagic
+ xjs-business-blog
diff --git a/xjs-business/xjs-business-blog/pom.xml b/xjs-business/xjs-business-blog/pom.xml
new file mode 100644
index 00000000..90faceb9
--- /dev/null
+++ b/xjs-business/xjs-business-blog/pom.xml
@@ -0,0 +1,27 @@
+
+
+
+ xjs-business
+ com.xjs
+ 3.3.0
+
+ 4.0.0
+
+ xjs-business-blog
+
+
+ 11
+ 11
+
+
+
+
+ com.xjs
+ xjs-business-common
+ 3.3.0
+
+
+
+
\ No newline at end of file
diff --git a/xjs-business/xjs-business-blog/src/main/java/com/xjs/XjsBlogApp.java b/xjs-business/xjs-business-blog/src/main/java/com/xjs/XjsBlogApp.java
new file mode 100644
index 00000000..64408265
--- /dev/null
+++ b/xjs-business/xjs-business-blog/src/main/java/com/xjs/XjsBlogApp.java
@@ -0,0 +1,22 @@
+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-27
+ */
+@SpringBootApplication
+@EnableCustomConfig
+@EnableCustomSwagger2
+@EnableRyFeignClients
+public class XjsBlogApp {
+ public static void main(String[] args) {
+ SpringApplication.run(XjsBlogApp.class, args);
+ }
+}
diff --git a/xjs-business/xjs-business-blog/src/main/resources/banner.txt b/xjs-business/xjs-business-blog/src/main/resources/banner.txt
new file mode 100644
index 00000000..6f3fceaa
--- /dev/null
+++ b/xjs-business/xjs-business-blog/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-blog/src/main/resources/bootstrap.yml b/xjs-business/xjs-business-blog/src/main/resources/bootstrap.yml
new file mode 100644
index 00000000..5965096d
--- /dev/null
+++ b/xjs-business/xjs-business-blog/src/main/resources/bootstrap.yml
@@ -0,0 +1,31 @@
+# Tomcat
+server:
+ port: 9907
+
+# Spring
+spring:
+ application:
+ # 应用名称
+ name: xjs-blog
+ 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-blog/src/main/resources/logback.xml b/xjs-business/xjs-business-blog/src/main/resources/logback.xml
new file mode 100644
index 00000000..e86018e1
--- /dev/null
+++ b/xjs-business/xjs-business-blog/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-blog/src/main/resources/rebel.xml b/xjs-business/xjs-business-blog/src/main/resources/rebel.xml
new file mode 100644
index 00000000..7ae15862
--- /dev/null
+++ b/xjs-business/xjs-business-blog/src/main/resources/rebel.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ xjs-business-blog
+
+
+
+
+
+
+