jbpm核心配置文件jbpm.hibernate.cfg.xml的解析
[html]
注意,jbpm使用默认使用hibernate连接数据库,俩捏数据库的驱动包默认是mysql5那个版本的.
注意,jbpm使用默认使用hibernate连接数据库,俩捏数据库的驱动包默认是mysql5那个版本的.[html]
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- 数据库连接信息 -->
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- 数据库连接信息 -->[html]
<!--注意这里的方言尽量使用<SPAN style="FONT-FAMILY: Arial, Helvetica, sans-serif">org.hibernate.dialect.MySQL5InnoDBDialect,否则可能会出现一些莫名其妙的异常</SPAN><SPAN style="FONT-FAMILY: Arial, Helvetica, sans-serif">--></SPAN>
<property name="hibernate.dialect">org.hibernate.dialect.MySQL5InnoDBDialect</property>
<!--注意这里的方言尽量使用org.hibernate.dialect.MySQL5InnoDBDialect,否则可能会出现一些莫名其妙的异常-->
<property name="hibernate.dialect">org.hibernate.dialect.MySQL5InnoDBDialect</property>
[html]
<!--注意驱动类的名字不要写错了,应该是<SPAN style="FONT-FAMILY: Arial, Helvetica, sans-serif">com.mysql.jdbc.Driver</SPAN><SPAN style="FONT-FAMILY: Arial, Helvetica, sans-serif">--></SPAN>
<!--注意驱动类的名字不要写错了,应该是com.mysql.jdbc.Driver-->[html] view plaincopyprint?
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql:///jbpm4_njupt</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">njupt</property>
<!-- 其他配置,以下一行代码实现自动建表 -->
<property name="hibernate.hbm2ddl.auto">update</property>
<!-- 导入JBPM的映射文件 -->
<mapping resource="jbpm.repository.hbm.xml" />
<mapping resource="jbpm.execution.hbm.xml" />
<mapping resource="jbpm.history.hbm.xml" />
<mapping resource="jbpm.task.hbm.xml" />
<mapping resource="jbpm.identity.hbm.xml" />
</session-factory>
t;/hibernate-configuration>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql:///jbpm4_njupt</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">njupt</property>
<!-- 其他配置,以下一行代码实现自动建表 -->
<property name="hibernate.hbm2ddl.auto">update</property>
<!-- 导入JBPM的映射文件 -->
<mapping resource="jbpm.repository.hbm.xml" />
<mapping resource="jbpm.execution.hbm.xml" />
<mapping resource="jbpm.history.hbm.xml" />
<mapping resource="jbpm.task.hbm.xml" />
<mapping resource="jbpm.identity.hbm.xml" />
</session-factory>
</hibernate-configuration>
补充:web前端 , HTML/CSS ,