部署环境

发表时间:2018-04-08 11:44:27 浏览量( 3 ) 留言数( 0 )

学习目标:

1、了解Java的历史

2、为什么要学习Java语言

3、端正学习态度


学习过程:



部署explorer,项目,打包是war包。

activiti-webapp-explorer2  ,项目回自动的建立三个用户,参考下面的源代码


修改pom.xml

    	<dependency>
		<groupId>mysql</groupId>
		<artifactId>mysql-connector-java</artifactId>
		<scope>runtime</scope>
	</dependency>

修改db.properties

db=mysql
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/activiti_db?useUnicode=true&amp;characterEncoding=utf8
jdbc.username=root
jdbc.password=123456


你可以打包成为war包,部署到tomcat,也可以直接在eclipse运行。查看pom.xml有tomcat的插件。输入命令:

tomcat7:run

初始启动会自动建立下面的三个用户的,启动后你可以使用下面的信息登录

账号:kermit

密码:kermit

  protected void initDemoUsers() {

    createUser("kermit", "Kermit", "The Frog", "kermit", "kermit@activiti.org", 

            "org/activiti/explorer/images/kermit.jpg",

            Arrays.asList("management", "sales", "marketing", "engineering", "user", "admin"),

            Arrays.asList("birthDate", "10-10-1955", "jobTitle", "Muppet", "location", "Hollywoord",

                          "phone", "+123456789", "twitterName", "alfresco", "skype", "activiti_kermit_frog"));

    

    createUser("gonzo", "Gonzo", "The Great", "gonzo", "gonzo@activiti.org", 

            "org/activiti/explorer/images/gonzo.jpg",

            Arrays.asList("management", "sales", "marketing", "user"),

            null);

    createUser("fozzie", "Fozzie", "Bear", "fozzie", "fozzie@activiti.org", 

            "org/activiti/explorer/images/fozzie.jpg",

            Arrays.asList("marketing", "engineering", "user"),

            null);

  }


如果你不想每一次运行都执行用户的初始化可以修改这些参数

# demo data properties

create.demo.users=true

create.demo.definitions=true

create.demo.models=true

create.demo.reports=true




1、打开eclipse,在Help->Install New Software后的弹出窗点击add按钮。 


2、输入一下内容 

Name:Activiti BPMN 2.0 designer 
Location:http://www.activiti.org/designer/update



方法二:离线安装包安装(安装失败)


通过网址:https://www.activiti.org/designer/archived/activiti-designer-5.18.0.zip下载离线安装包。

删除eclipse安装目录下,configuration文件夹里的org.eclipse.update文件夹,启动eclipse。

打开eclipse,在Help->Install New Software后的弹出窗点击Available Software Sites,删除方法一设置的资源信息。