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 + + + + + + +