Java Spring Roo MySQL JDBC驱动程序
我正在尝试在SpringRoo中安装MySQL JDBC驱动程序。以下是日志:Java Spring Roo MySQL JDBC驱动程序,java,mysql,spring-roo,Java,Mysql,Spring Roo,我正在尝试在SpringRoo中安装MySQL JDBC驱动程序。以下是日志: roo> addon search --requiresDescription "#jdbcdriver,driverclass:com.mysql.jdbc.Driver" 0 found, sorted by rank; T = trusted developer; R = Roo 1.2 compatible ID T R DESCRIPTION -----------------------------
roo> addon search --requiresDescription "#jdbcdriver,driverclass:com.mysql.jdbc.Driver"
0 found, sorted by rank; T = trusted developer; R = Roo 1.2 compatible
ID T R DESCRIPTION -------------------------------------------------------------
--------------------------------------------------------------------------------
[HINT] use 'addon info id --searchResultId ..' to see details about a search result
[HINT] use 'addon install id --searchResultId ..' to install a specific search result, or
[HINT] use 'addon install bundle --bundleSymbolicName TAB' to install a specific add-on version
我应该怎么做?如果您只是想添加驱动程序,可以直接将其添加到pom.xml中,例如
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.21</version>
</dependency>
mysql
mysql连接器java
5.1.21
如果您只是想添加驱动程序,可以直接将其添加到pom.xml中,例如
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.21</version>
</dependency>
mysql
mysql连接器java
5.1.21
要告诉roo安装jdbc驱动器,请尝试以下操作:
roo> addon search jdbc
9 found, sorted by rank; T = trusted developer; R = Roo 1.2 compatible
ID T R DESCRIPTION -------------------------------------------------------------
01 Y Y 1.2.4.0010 #jdbcdriver driverclass:net.sourceforge.jtds.jdbc.Driver.
This bundle wraps the standard Maven artifact: jtds-1.2.4.
02 Y Y 5.1.18.0001 #jdbcdriver driverclass:com.mysql.jdbc.Driver. This bundle
wraps the standard Maven artifact: mysql-connector-java-5.1.18.
03 Y Y 10.8.2.2_0001 Derby Client #jdbcdriver
driverclass:org.apache.derby.jdbc.ClientDriver. This bundle wraps the...
04 Y Y 6.7.0.0010 #jdbcdriver driverclass:com.ibm.as400.access.AS400JDBCDriver.
This bundle wraps the standard Maven artifact: jtopen-6.7.
05 Y Y 10.8.2.2_0001 Derby #jdbcdriver
driverclass:org.apache.derby.jdbc.EmbeddedDriver. This bundle wraps...
06 Y Y 9.1.0.901-1_0001 Postgres #jdbcdriver driverclass:org.postgresql.Driver.
This bundle wraps the standard Maven artifact:...
07 Y Y 9.1.0.901_0001 Postgres #jdbcdriver driverclass:org.postgresql.Driver.
This bundle wraps the standard Maven artifact:...
08 Y Y 1.3.170.0001 H2 #jdbcdriver driverclass:org.h2.Driver. This bundle wraps
the standard Maven artifact: h2-1.3.170.
09 Y Y 2.1.6.0020 #jdbcdriver driverclass:org.firebirdsql.jdbc.FBDriver. This
bundle wraps the standard Maven artifact: firebird-2.1.6.
--------------------------------------------------------------------------------
[HINT] use 'addon info id --searchResultId ..' to see details about a search result
[HINT] use 'addon install id --searchResultId ..' to install a specific search result, or
[HINT] use 'addon install bundle --bundleSymbolicName TAB' to install a specific add-on version
roo> addon install id --searchResultId 02
ID是列表中的ID…要告诉roo安装jdbc驱动器,请尝试以下操作:
roo> addon search jdbc
9 found, sorted by rank; T = trusted developer; R = Roo 1.2 compatible
ID T R DESCRIPTION -------------------------------------------------------------
01 Y Y 1.2.4.0010 #jdbcdriver driverclass:net.sourceforge.jtds.jdbc.Driver.
This bundle wraps the standard Maven artifact: jtds-1.2.4.
02 Y Y 5.1.18.0001 #jdbcdriver driverclass:com.mysql.jdbc.Driver. This bundle
wraps the standard Maven artifact: mysql-connector-java-5.1.18.
03 Y Y 10.8.2.2_0001 Derby Client #jdbcdriver
driverclass:org.apache.derby.jdbc.ClientDriver. This bundle wraps the...
04 Y Y 6.7.0.0010 #jdbcdriver driverclass:com.ibm.as400.access.AS400JDBCDriver.
This bundle wraps the standard Maven artifact: jtopen-6.7.
05 Y Y 10.8.2.2_0001 Derby #jdbcdriver
driverclass:org.apache.derby.jdbc.EmbeddedDriver. This bundle wraps...
06 Y Y 9.1.0.901-1_0001 Postgres #jdbcdriver driverclass:org.postgresql.Driver.
This bundle wraps the standard Maven artifact:...
07 Y Y 9.1.0.901_0001 Postgres #jdbcdriver driverclass:org.postgresql.Driver.
This bundle wraps the standard Maven artifact:...
08 Y Y 1.3.170.0001 H2 #jdbcdriver driverclass:org.h2.Driver. This bundle wraps
the standard Maven artifact: h2-1.3.170.
09 Y Y 2.1.6.0020 #jdbcdriver driverclass:org.firebirdsql.jdbc.FBDriver. This
bundle wraps the standard Maven artifact: firebird-2.1.6.
--------------------------------------------------------------------------------
[HINT] use 'addon info id --searchResultId ..' to see details about a search result
[HINT] use 'addon install id --searchResultId ..' to install a specific search result, or
[HINT] use 'addon install bundle --bundleSymbolicName TAB' to install a specific add-on version
roo> addon install id --searchResultId 02
ID是列表中的ID…在SpringRoo1.2.5.RELEASE中,似乎有一个bug。add-on命令显示MySQL驱动程序已成功安装,但运行DBRE命令失败,找不到驱动程序 对于这个版本的Roo,我也有其他人抱怨这个问题 对我来说,唯一可行的方法是手动将MySQL驱动程序(JAR)复制到/spring-roo-1.2.5.RELEASE/bundle文件夹中,然后重新启动SpringSTS,这就是我运行roo的地方
成功了;希望这能帮助同舟共济的人。在SpringRoo1.2.5.RELEASE中,似乎有一个bug。add-on命令显示MySQL驱动程序已成功安装,但运行DBRE命令失败,找不到驱动程序 对于这个版本的Roo,我也有其他人抱怨这个问题 对我来说,唯一可行的方法是手动将MySQL驱动程序(JAR)复制到/spring-roo-1.2.5.RELEASE/bundle文件夹中,然后重新启动SpringSTS,这就是我运行roo的地方 成功了;希望这对同舟共济的人有所帮助