```
<persistenceAdapter> <jdbcPersistenceAdapter dataSource="#mysql-ds" createTablesOnStartup="true" /> </persistenceAdapter> <bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <PRoperty name="driverClassName" value="com.mysql.jdbc.Driver"/> <property name="url" value="jdbc:mysql://127.0.0.1:3307/test"/> <property name="username" value="root"/> <property name="passWord" value="123456"/> </bean> ```
b.将commons-dbcp-1.2.1.jar,commons-pool-1.2.jar复制到lib目录下
c.重启activemq后,利用连接工具查看生成的数据库表结构。
新闻热点
疑难解答