ソースを参照

工作流流程客户端添加

ljy121 1 年間 前
コミット
14fbe49588

+ 33 - 0
zjugis-workflow-client/.gitignore

@@ -0,0 +1,33 @@
+HELP.md
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/

+ 96 - 0
zjugis-workflow-client/pom.xml

@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>com.zjugis.cloud</groupId>
+        <artifactId>zjugis</artifactId>
+        <version>${revision}</version>
+    </parent>
+	<artifactId>zjugis-workflow-client</artifactId>
+	<version>0.0.1-SNAPSHOT</version>
+	<name>zjugis-workflow-client</name>
+
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-dependencies</artifactId>
+                <version>${spring.boot.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+	<dependencies>
+        <dependency>
+            <groupId>com.baomidou</groupId>
+            <artifactId>mybatis-plus-boot-starter</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>com.baomidou</groupId>
+            <artifactId>mybatis-plus</artifactId>
+            <version>3.5.3.2</version>
+        </dependency>
+        <dependency>
+            <groupId>com.zjugis.cloud</groupId>
+            <artifactId>zjugis-spring-boot-starter-workflow</artifactId>
+            <version>0.0.1-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.zjugis.cloud</groupId>
+            <artifactId>zjugis-spring-boot-starter-rpc</artifactId>
+            <optional>true</optional>
+        </dependency>
+		<dependency>
+			<groupId>org.springframework.boot</groupId>
+			<artifactId>spring-boot-starter-web</artifactId>
+		</dependency>
+
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-bootstrap</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>com.alibaba.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
+        </dependency>
+
+        <!-- Config 配置中心相关 -->
+        <dependency>
+            <groupId>com.alibaba.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>com.oracle</groupId>
+            <artifactId>ojdbc6</artifactId>
+            <version>11.2.0.3</version>
+        </dependency>
+
+		<dependency>
+			<groupId>org.springframework.boot</groupId>
+			<artifactId>spring-boot-starter-test</artifactId>
+			<scope>test</scope>
+		</dependency>
+
+
+	</dependencies>
+
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.springframework.boot</groupId>
+				<artifactId>spring-boot-maven-plugin</artifactId>
+				<configuration>
+					<image>
+						<builder>paketobuildpacks/builder-jammy-base:latest</builder>
+					</image>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+
+</project>

+ 22 - 0
zjugis-workflow-client/src/main/java/com/zjugis/flowclient/ZjugisWorkflowClientApplication.java

@@ -0,0 +1,22 @@
+package com.zjugis.flowclient;
+
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
+import org.springframework.cloud.context.config.annotation.RefreshScope;
+import org.springframework.context.annotation.ComponentScan;
+
+@SpringBootApplication
+@EnableDiscoveryClient
+@ComponentScan("com.zjugis.*")
+@MapperScan("com.zjugis.flowclient.demo.dao")
+@RefreshScope
+public class ZjugisWorkflowClientApplication{
+
+	public static void main(String[] args) {
+		SpringApplication.run(ZjugisWorkflowClientApplication.class, args);
+	}
+
+
+}

+ 54 - 0
zjugis-workflow-client/src/main/resources/application.yaml

@@ -0,0 +1,54 @@
+spring:
+  main:
+    allow-circular-references: true
+    allow-bean-definition-overriding: true
+  datasource:
+    driverClassName: oracle.jdbc.OracleDriver
+    url: jdbc:oracle:thin:@10.10.10.8:1521:ORCL
+    username: Z_WORKFLOW_CLIENT
+    password: Zjugis1402
+
+  #redis
+  redis:
+    host: 127.0.0.1
+  #freemarker
+  freemarker:
+    settings:
+      auto_import: public/html.ftl as h,public/htmlMobile.ftl as hm,public/htmlApp.ftl as ha,public/workFlow.ftl as w,LocalTempDemo/local.ftl as l,public/workFlowMobile.ftl as wm,public/workFlowApp.ftl as wa
+  mvc:
+    view:
+      prefix: classpath:/templates/
+      suffix: .ftl
+    static-path-pattern: /**
+  web:
+    resources:
+      static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/templates/
+
+mybatis-plus:
+  mapper-locations: classpath:/mapper/oracle/*Mapper.xml
+  global-config:
+    #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
+    field-strategy: 0
+    refresh-mapper: true
+  configuration:
+    callSettersOnNulls: true
+    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+
+zjugis:
+  web:
+    admin-ui:
+      url: http://dashboard.zjugis.iocoder.cn # Admin 管理后台 UI 的地
+
+#外部系统Url
+serviceUrl:
+  workflow-client: http://localhost:6010
+  UI: http://114.215.200.79:81/UI
+  ui_version: http://114.215.200.79:81/UI
+  z_workflow: http://localhost:6090
+
+version: 2023.11.13
+
+#系统id
+SysID: workflow-client
+entrance_ip:
+extranet_entrance_ip: