Chinaunix首页 | 论坛 | 博客
  • 博客访问: 615444
  • 博文数量: 298
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 3077
  • 用 户 组: 普通用户
  • 注册时间: 2019-06-17 10:57
文章分类

全部博文(298)

文章存档

2022年(96)

2021年(201)

2019年(1)

我的朋友

分类: Java

2021-08-12 15:58:44

 1. pom

点击(此处)折叠或打开

  1. <parent>
  2.         <groupId>org.springframework.boot</groupId>
  3.         <artifactId>spring-boot-starter-parent</artifactId>
  4.         <version>2.5.2</version>
  5.         <relativePath /> <!-- lookup parent from repository -->
  6.     </parent>

  7.     <properties>
  8.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  9.         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  10.         <java.version>1.8</java.version>
  11.         <shiro.version>1.4.0</shiro.version>
  12.         <activiti.version>6.0.0</activiti.version>
  13.         <batik.version>1.7</batik.version>
  14.         <maven-jar-plugin.version>3.0.0</maven-jar-plugin.version>
  15.     </properties>


  16.         <!-- activiti -->
  17.         <dependency>
  18.             <groupId>org.activiti</groupId>
  19.             <artifactId>activiti-spring-boot-starter-basic</artifactId>
  20.             <version>${activiti.version}</version>
  21.             <exclusions>
  22.          <exclusion>
  23.          <groupId>de.odysseus.juel</groupId>
  24.          <artifactId>juel-spi</artifactId>
  25.          </exclusion>
  26.          <exclusion>
  27.          <groupId>de.odysseus.juel</groupId>
  28.          <artifactId>juel-api</artifactId>
  29.          </exclusion>
  30.          </exclusions>
  31.         </dependency>
  32.          <dependency>
  33.          <groupId>org.activiti</groupId>
  34.          <artifactId>activiti-json-converter</artifactId>
  35.          <version>${activiti.version}</version>
  36.         </dependency>
  37.         <!-- batik start -->
  38.         <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-anim -->
  39.         <dependency>
  40.          <groupId>org.apache.xmlgraphics</groupId>
  41.          <artifactId>batik-anim</artifactId>
  42.          <version>${batik.version}</version>
  43.         </dependency>
  44.         <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-awt-util -->
  45.         <dependency>
  46.          <groupId>org.apache.xmlgraphics</groupId>
  47.          <artifactId>batik-awt-util</artifactId>
  48.          <version>${batik.version}</version>
  49.         </dependency>
  50.         <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-bridge -->
  51.         <dependency>
  52.          <groupId>org.apache.xmlgraphics</groupId>
  53.          <artifactId>batik-bridge</artifactId>
  54.          <version>${batik.version}</version>
  55.         </dependency>
  56.         <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-codec -->
  57.         <dependency>
  58.          <groupId>org.apache.xmlgraphics</groupId>
  59.          <artifactId>batik-codec</artifactId>
  60.          <version>${batik.version}</version>
  61.         </dependency>                
  62.         <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-css -->
  63.         <dependency>
  64.          <groupId>org.apache.xmlgraphics</groupId>
  65.          <artifactId>batik-css</artifactId>
  66.          <version>${batik.version}</version>
  67.         </dependency>
  68.         <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-dom -->
  69.         <dependency>
  70.          <groupId>org.apache.xmlgraphics</groupId>
  71.          <artifactId>batik-dom</artifactId>
  72.          <version>${batik.version}</version>
  73.         </dependency>
  74.         <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-ext -->
  75.         <dependency>
  76.          <groupId>org.apache.xmlgraphics</groupId>
  77.          <artifactId>batik-ext</artifactId>
  78.          <version>${batik.version}</version>
  79.         </dependency>
  80.         <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-gvt -->
  81.         <dependency>
  82.          <groupId>org.apache.xmlgraphics</groupId>
  83.          <artifactId>batik-gvt</artifactId>
  84.          <version>${batik.version}</version>
  85.         </dependency>
  86.         <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-js -->
  87.         <dependency>
  88.          <groupId>org.apache.xmlgraphics</groupId>
  89.          <artifactId>batik-js</artifactId>
  90.          <version>${batik.version}</version>
  91.         </dependency>
  92.         <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-parser -->
  93.         <dependency>
  94.          <groupId>org.apache.xmlgraphics</groupId>
  95.          <artifactId>batik-parser</artifactId>
  96.          <version>${batik.version}</version>
  97.         </dependency>
  98.         <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-script -->
  99.         <dependency>
  100.          <groupId>org.apache.xmlgraphics</groupId>
  101.          <artifactId>batik-script</artifactId>
  102.          <version>${batik.version}</version>
  103.         </dependency>
  104.         <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-svg-dom -->
  105.         <dependency>
  106.          <groupId>org.apache.xmlgraphics</groupId>
  107.          <artifactId>batik-svg-dom</artifactId>
  108.          <version>${batik.version}</version>
  109.         </dependency>
  110.         <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-svggen -->
  111.         <dependency>
  112.          <groupId>org.apache.xmlgraphics</groupId>
  113.          <artifactId>batik-svggen</artifactId>
  114.          <version>${batik.version}</version>
  115.         </dependency>
  116.         <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-transcoder -->
  117.         <dependency>
  118.          <groupId>org.apache.xmlgraphics</groupId>
  119.          <artifactId>batik-transcoder</artifactId>
  120.          <version>${batik.version}</version>
  121.         </dependency>
  122.         <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-util -->
  123.         <dependency>
  124.          <groupId>org.apache.xmlgraphics</groupId>
  125.          <artifactId>batik-util</artifactId>
  126.          <version>${batik.version}</version>
  127.         </dependency>
  128.         <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-xml -->
  129.         <dependency>
  130.          <groupId>org.apache.xmlgraphics</groupId>
  131.          <artifactId>batik-xml</artifactId>
  132.          <version>${batik.version}</version>
  133.         </dependency>

2. 配置类

点击(此处)折叠或打开

  1. package org.fh.config;

  2. import org.activiti.spring.SpringProcessEngineConfiguration;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.context.ApplicationContext;
  5. import org.springframework.context.annotation.Bean;
  6. import org.springframework.context.annotation.Configuration;
  7. import org.springframework.stereotype.Controller;
  8. import org.springframework.transaction.PlatformTransactionManager;

  9. import javax.sql.DataSource;

  10. /**
  11.  * 说明:Activiti配置
  12.  * 作者:FH Admin
  13.  * from:fhadmin.cn
  14.  */
  15. @Controller
  16. @Configuration
  17. public class ActivitiConfig {

  18.     @Autowired
  19.     PlatformTransactionManager transactionManager;

  20.     @Autowired
  21.     ApplicationContext applicationContext;

  22.     @Bean
  23.     public SpringProcessEngineConfiguration getProcessEngineConfiguration() {
  24.         DataSource dataSource = applicationContext.getBean(DataSource.class);
  25.         SpringProcessEngineConfiguration config = new SpringProcessEngineConfiguration();
  26.         config.setDataSource(dataSource);
  27.         config.setDbIdentityUsed(false);
  28.         config.setTransactionManager(transactionManager);
  29.         /**设置字体**/
  30.         config.setActivityFontName("宋体");
  31.         config.setLabelFontName("宋体");
  32.         config.setAnnotationFontName("宋体");
  33.         config.setDatabaseType("oracle");
  34.         return config;
  35.     }

  36. }


阅读(1132) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~