创建工作流的23张表

        好吧,我承认,我记不住这些代码,但是我有博客啊!

        贴上,贴上,贴上!嘎嘎,下次需要的时候,直接COPY一哈。

        

    /**
     * 使用activiti框架提供的自动建表方式创建23张表-----没有提供配置文件
     */ 
    @Test
    public void test1() {
        // 创建一个流程引擎配置对象
        ProcessEngineConfiguration conf = 
                ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();
        // 设置jdbc连接参数
        conf.setJdbcDriver("com.mysql.jdbc.Driver"); conf.setJdbcUrl("jdbc:mysql://localhost:3306/activiti_01");
        conf.setJdbcUsername("root");
        conf.setJdbcPassword("yezi");
        // 设置自动建表
        conf.setDatabaseSchemaUpdate("true");
        // 使用配置对象创建一个流程引擎对象,并且在创建过程中可以自动建表
        ProcessEngine processEngine = conf.buildProcessEngine();
    }

猜你喜欢

转载自blog.csdn.net/yanluandai1985/article/details/80847003
今日推荐