springboot整合activiti7

一、添加依赖



	4.0.0
	
		org.springframework.boot
		spring-boot-starter-parent
		2.7.5
		 
	
	com.java
	java_activiti
	0.0.1-SNAPSHOT
	java_activiti
	Demo project for Spring Boot
	
		1.8
		UTF-8
		UTF-8
	
	
		
			org.springframework.boot
			spring-boot-starter
		

		
			org.projectlombok
			lombok
			true
		
		
			org.springframework.boot
			spring-boot-starter-test
			test
		

		
			org.springframework.boot
			spring-boot-starter-jdbc
		
		
			org.activiti
			activiti-spring-boot-starter
			7.0.0.Beta2
		
		
			mysql
			mysql-connector-java
			5.1.29
		
	

	
		
			
				org.springframework.boot
				spring-boot-maven-plugin
				
					
						
							org.projectlombok
							lombok
						
					
				
			
		
	


二、修改配置


spring:
  application:
    name: java_activiti
  datasource:
    driver-class-name: com.mysql.jdbc.Driver
    url: jdbc:mysql://localhost:3306/activiti01?useUnicode=true&nullCatalogMeansCurrent=true
    username: root
    password: root
  activiti:
    #每次应用启动不检查Activiti数据表是否存在及版本号是否匹配,提升应用启动速度
    database-schema-update: true
    db-history-used: true
    history-level: full
    #在项目单独作为一个引擎,本身不部署流程的时候,如果resources目录没有“processes”目录,启动项目报错–找不到processes目录。需要在配置文件中添加以下内容:
    check-process-definitions: false
    process-definition-location-prefix: classpath:/processes/
    process-definition-location-suffixes:
      -**.bpmn
      -**.bpmn20.xml


三、启动项目

springboot整合activiti7_第1张图片

 

你可能感兴趣的:(spring,boot,spring,boot,activiti)