Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Activity_Demo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dengwei
Activity_Demo
Commits
84f3734f
Commit
84f3734f
authored
Oct 26, 2022
by
xuzhiyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
84e5ce33
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
91 additions
and
18 deletions
+91
-18
pom.xml
pom.xml
+63
-11
SpringBootActivityProcessesApplication.java
.../oyc/activiti/SpringBootActivityProcessesApplication.java
+3
-0
application-local.yml
src/main/resources/application-local.yml
+12
-3
application-test.yml
src/main/resources/application-test.yml
+13
-4
No files found.
pom.xml
View file @
84f3734f
<?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"
>
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
2.3.7.RELEASE
</version>
<relativePath/>
<!-- lookup parent from repository -->
</parent>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.oyc.activiti
</groupId>
<artifactId>
springboot-activiti
</artifactId>
...
...
@@ -14,15 +9,54 @@
<name>
springboot-activiti-processes
</name>
<description>
activiti demo
</description>
<parent>
<groupId>
com.keymobile
</groupId>
<artifactId>
parent
</artifactId>
<version>
1.1.5-release
</version>
</parent>
<properties>
<java.version>
1.8
</java.version>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<spring-boot.version>
2.3.7.RELEASE
</spring-boot.version>
<auth.version>
3.0.12-release
</auth.version>
<config.version>
1.1.5-release
</config.version>
<crypto.version>
1.1.5-release
</crypto.version>
</properties>
<dependencies>
<dependency>
<groupId>
com.keymobile.auth
</groupId>
<artifactId>
security
</artifactId>
<version>
${auth.version}
</version>
</dependency>
<dependency>
<groupId>
com.keymobile
</groupId>
<artifactId>
config
</artifactId>
<version>
${config.version}
</version>
</dependency>
<dependency>
<groupId>
com.keymobile
</groupId>
<artifactId>
crypto
</artifactId>
<version>
${crypto.version}
</version>
</dependency>
<dependency>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-project-info-reports-plugin
</artifactId>
<version>
3.0.0
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
...
...
@@ -30,6 +64,7 @@
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
8.0.21
</version>
</dependency>
<!-- druid -->
<dependency>
...
...
@@ -38,10 +73,10 @@
<version>
1.1.9
</version>
</dependency>
<!-- lombok 可以为我们生产getter、setter、构造方法、toString方法等-->
<dependency
>
<groupId>
org.projectlombok
</groupId
>
<artifactId>
lombok
</artifactId
>
</dependency
>
<!-- <dependency>--
>
<!-- <groupId>org.projectlombok</groupId>--
>
<!-- <artifactId>lombok</artifactId>--
>
<!-- </dependency>--
>
<!--activiti工作流-->
<dependency>
<groupId>
org.activiti
</groupId>
...
...
@@ -62,6 +97,7 @@
</dependencies>
<build>
<plugins>
<plugin>
...
...
@@ -71,4 +107,20 @@
</plugins>
</build>
<repositories>
<repository>
<id>
keymobile
</id>
<url>
http://139.198.127.28:18081/repository/maven-public/
</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>
keymobile
</id>
<url>
http://139.198.127.28:18081/repository/maven-public
</url>
</pluginRepository>
</pluginRepositories>
</project>
src/main/java/com/oyc/activiti/SpringBootActivityProcessesApplication.java
View file @
84f3734f
...
...
@@ -3,11 +3,14 @@ package com.oyc.activiti;
import
org.activiti.spring.boot.SecurityAutoConfiguration
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
/**
* @author oyc
*/
@SpringBootApplication
(
exclude
=
SecurityAutoConfiguration
.
class
)
@EnableDiscoveryClient
public
class
SpringBootActivityProcessesApplication
{
public
static
void
main
(
String
[]
args
)
{
...
...
src/main/resources/application-local.yml
View file @
84f3734f
# 应用服务 WEB 访问端口
server
:
port
:
8083
eureka
:
client
:
registerWithEureka
:
true
region
:
default
registryFetchIntervalSeconds
:
5
serviceUrl
:
defaultZone
:
http://localhost:8081/eureka/
enabled
:
true
# 应用名称
spring
:
application
:
...
...
@@ -18,8 +27,8 @@ spring:
history-level
:
full
datasource
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://1
27.0.0.1:3306/activiti_demo?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
username
:
roo
t
password
:
root
url
:
jdbc:mysql://1
39.198.127.54:18073/test?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
username
:
tes
t
password
:
Km@38497130
driver-class-name
:
com.mysql.cj.jdbc.Driver
src/main/resources/application-test.yml
View file @
84f3734f
# 应用服务 WEB 访问端口
server
:
port
:
8083
# 应用名称
eureka
:
client
:
registerWithEureka
:
true
region
:
default
registryFetchIntervalSeconds
:
5
serviceUrl
:
defaultZone
:
http://localhost:8081/eureka/
enabled
:
true
spring
:
application
:
name
:
activity
...
...
@@ -17,8 +25,8 @@ spring:
#保存历史数据级别设置为full最高级别,便于历史数据的追溯
history-level
:
full
datasource
:
url
:
jdbc:mysql://192.168.0.78:3306/mr?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
username
:
test
password
:
test
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://139.198.127.54:18073/test?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
username
:
test
password
:
Km@38497130
driver-class-name
:
com.mysql.cj.jdbc.Driver
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment