Ock*_*zor 5 database spring flyway
刚开始使用Flyway和Spring 3.0.到目前为止,我所做的只是将Flyway依赖项和插件添加到我的pom.xml中.接下来,我尝试mvn flyway:status在命令行中运行.但是,它抱怨它无法实例化jdbc驱动程序(我正在使用postgres).
有人知道是什么原因引起的吗?我正在使用Springsource Tool Suite开发我的应用程序.postgres驱动程序位于WEB-INF/lib/postgresql-9.1-902.jdbc4.jar下
任何帮助是极大的赞赏!谢谢!
Axe*_*ine 12
要使Maven插件正常工作,您必须:
将此依赖项添加到项目(或仅插件):
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.1-901-1.jdbc4</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
并配置这样的插件:
<plugin>
<groupId>com.googlecode.flyway</groupId>
<artifactId>flyway-maven-plugin</artifactId>
<version>1.7</version>
<configuration>
<driver>org.postgresql.Driver</driver>
<url>jdbc:postgresql://...</url>
<user>...</user>
<password>...</password>
</configuration>
</plugin>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11429 次 |
| 最近记录: |