首页 > 编程语言 > 详细

springMvc4+hibernate4+activiti5.15(Maven)

时间:2015-10-29 00:18:12      阅读:339      评论:0      收藏:0      [点我收藏+]

首先创建activiti表

方式1、用代码创建

package createtable;
import org.activiti.engine.ProcessEngineConfiguration;
import org.junit.Test;

public class CreateActivitiTable {

    @Test
    public void createTable() {
        ProcessEngineConfiguration processEngineConfiguration = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();
        processEngineConfiguration.setJdbcDriver("com.mysql.jdbc.Driver");
        processEngineConfiguration.setJdbcUrl("jdbc:mysql://localhost:3306/activiti?useUnicode=true&characterEncoding=utf-8");
        processEngineConfiguration.setJdbcUsername("root");
        processEngineConfiguration.setJdbcPassword("root");
        processEngineConfiguration.setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE);
        processEngineConfiguration.buildProcessEngine();
    }
}

方式2、直接从下载包中找到相应sql文件导入即可 

 

项目下载地址http://files.cnblogs.com/files/walk-the-Line/springmvc.activiti5.15.1.zip

 

springMvc4+hibernate4+activiti5.15(Maven)

原文:http://www.cnblogs.com/walk-the-Line/p/4919033.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!