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