0
如何將存儲庫添加到Apache Servicemix 4.4.1?將存儲庫添加到Apache Servicemix 4.4.1
我必須安裝Spring JDBC Template和PostgreSQL驅動程序!
如何將存儲庫添加到Apache Servicemix 4.4.1?將存儲庫添加到Apache Servicemix 4.4.1
我必須安裝Spring JDBC Template和PostgreSQL驅動程序!
我問我的同事,她找到了解決辦法!
首先,Spring jdbc庫已經在服務組合中,我之前沒有注意到Spring-jdbc庫。
對於PostgreSQL有一些步驟:
創建一個新的XML文件是這樣的:
<?xml version="1.0" encoding="UTF-8"?>
<features>
<feature name="jdbc-driver">
<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-dbcp/1.4_2</bundle>
<bundle>mvn:org.postgresql/com.springsource.org.postgresql.jdbc4/8.3.604</bundle>
</feature>
</features>
打開ServiceMix的命令控制檯,輸入:
features:addUrl file:[file's path]
最後
features:install jdbc-driver