From 71f0c8d575f0dbe3dfd48c227562292e26d923f8 Mon Sep 17 00:00:00 2001
From: xjs <1294405880@qq.com>
Date: Sat, 16 Apr 2022 23:38:39 +0800
Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=96=B0=E5=A2=9E=E5=B7=A5=E4=BD=9C?=
=?UTF-8?q?=E6=B5=81=E6=9C=8D=E5=8A=A1=EF=BC=8C=E6=90=AD=E5=BB=BA=E5=9F=BA?=
=?UTF-8?q?=E7=A1=80=E7=8E=AF=E5=A2=83=E5=B9=B6=E5=BC=95=E5=85=A5=E4=BE=9D?=
=?UTF-8?q?=E8=B5=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 15 ++++
xjs-business/pom.xml | 3 +-
xjs-business/xjs-business-workflow/pom.xml | 38 +++++++++
.../src/main/java/com/xjs/XjsWorkflowApp.java | 22 +++++
.../src/main/resources/banner.txt | 8 ++
.../src/main/resources/bootstrap.yml | 29 +++++++
.../src/main/resources/logback.xml | 81 +++++++++++++++++++
.../src/main/resources/rebel.xml | 16 ++++
8 files changed, 211 insertions(+), 1 deletion(-)
create mode 100644 xjs-business/xjs-business-workflow/pom.xml
create mode 100644 xjs-business/xjs-business-workflow/src/main/java/com/xjs/XjsWorkflowApp.java
create mode 100644 xjs-business/xjs-business-workflow/src/main/resources/banner.txt
create mode 100644 xjs-business/xjs-business-workflow/src/main/resources/bootstrap.yml
create mode 100644 xjs-business/xjs-business-workflow/src/main/resources/logback.xml
create mode 100644 xjs-business/xjs-business-workflow/src/main/resources/rebel.xml
diff --git a/pom.xml b/pom.xml
index c75807af..e5101a50 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,6 +54,7 @@
7.12.1
3.12.0
1.0.5
+ 7.1.0.M4
@@ -137,6 +138,20 @@
+
+
+ org.activiti
+ activiti-spring-boot-starter
+ ${activiti.version}
+
+
+ org.activiti.dependencies
+ activiti-dependencies
+ ${activiti.version}
+ pom
+
+
+
com.xjs
xjs-business-common
diff --git a/xjs-business/pom.xml b/xjs-business/pom.xml
index 6394a847..9e81be89 100644
--- a/xjs-business/pom.xml
+++ b/xjs-business/pom.xml
@@ -26,6 +26,7 @@
xjs-business-blog
xjs-project-srb
xjs-project-mall
+ xjs-business-workflow
@@ -137,4 +138,4 @@
-
\ No newline at end of file
+
diff --git a/xjs-business/xjs-business-workflow/pom.xml b/xjs-business/xjs-business-workflow/pom.xml
new file mode 100644
index 00000000..b0f6e8e5
--- /dev/null
+++ b/xjs-business/xjs-business-workflow/pom.xml
@@ -0,0 +1,38 @@
+
+
+
+ xjs-business
+ com.xjs
+ 3.3.0
+
+ 4.0.0
+ 业务模块-工作流模块
+
+ xjs-business-workflow
+
+
+ 11
+ 11
+
+
+
+
+
+ org.activiti
+ activiti-spring-boot-starter
+
+
+ org.activiti.dependencies
+ activiti-dependencies
+ pom
+
+
+
+ com.xjs
+ xjs-business-common
+
+
+
+
diff --git a/xjs-business/xjs-business-workflow/src/main/java/com/xjs/XjsWorkflowApp.java b/xjs-business/xjs-business-workflow/src/main/java/com/xjs/XjsWorkflowApp.java
new file mode 100644
index 00000000..71eea155
--- /dev/null
+++ b/xjs-business/xjs-business-workflow/src/main/java/com/xjs/XjsWorkflowApp.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-04-16
+ */
+@SpringBootApplication
+@EnableCustomConfig
+@EnableCustomSwagger2
+@EnableRyFeignClients
+public class XjsWorkflowApp {
+ public static void main(String[] args) {
+ SpringApplication.run(XjsWorkflowApp.class, args);
+ }
+}
diff --git a/xjs-business/xjs-business-workflow/src/main/resources/banner.txt b/xjs-business/xjs-business-workflow/src/main/resources/banner.txt
new file mode 100644
index 00000000..6f3fceaa
--- /dev/null
+++ b/xjs-business/xjs-business-workflow/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-workflow/src/main/resources/bootstrap.yml b/xjs-business/xjs-business-workflow/src/main/resources/bootstrap.yml
new file mode 100644
index 00000000..cd54aea6
--- /dev/null
+++ b/xjs-business/xjs-business-workflow/src/main/resources/bootstrap.yml
@@ -0,0 +1,29 @@
+# Tomcat
+server:
+ port: 9908
+
+# Spring
+spring:
+ application:
+ # 应用名称
+ name: xjs-workflow
+ 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-workflow/src/main/resources/logback.xml b/xjs-business/xjs-business-workflow/src/main/resources/logback.xml
new file mode 100644
index 00000000..7c986a87
--- /dev/null
+++ b/xjs-business/xjs-business-workflow/src/main/resources/logback.xml
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+ ${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/xjs-business/xjs-business-workflow/src/main/resources/rebel.xml b/xjs-business/xjs-business-workflow/src/main/resources/rebel.xml
new file mode 100644
index 00000000..ee2de727
--- /dev/null
+++ b/xjs-business/xjs-business-workflow/src/main/resources/rebel.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ xjs-business-workflow
+
+
+
+
+
+
+