Oracle11g mybatis无法使用oracle数据库生成

Oracle11g mybatis无法使用oracle数据库生成,oracle11g,generator,mybatis,ibatis,Oracle11g,Generator,Mybatis,Ibatis,我得到了一个像这样的generatorConfig.xml: <generatorConfiguration> <classPathEntry location="D:\Workspace\springlt\src\main\resources\ojdbc6.jar" /> <context id="MyBatis3" targetRuntime="MyBatis3"> <commentGenerator>

我得到了一个像这样的
generatorConfig.xml

<generatorConfiguration>
    <classPathEntry location="D:\Workspace\springlt\src\main\resources\ojdbc6.jar" />

    <context id="MyBatis3" targetRuntime="MyBatis3">
        <commentGenerator>
            <property name="suppressAllComments" value="true" />
        </commentGenerator>

        <jdbcConnection driverClass="com.mysql.jdbc.Driver"
            connectionURL="myurl" userId="username"
            password="password">
        </jdbcConnection>

        <javaModelGenerator targetPackage="vn.laptrinh.domain"
            targetProject="../java" />

        <sqlMapGenerator targetPackage="vn.laptrinh.dao.xml"
            targetProject="../java" />

        <javaClientGenerator type="XMLMAPPER"
            targetPackage="vn.laptrinh.dao" targetProject="../java" />

        <!-- <table tableName="users" domainObjectName="User"
            enableSelectByExample="false" enableDeleteByExample="false"
            enableCountByExample="false" enableUpdateByExample="false">
            <columnOverride column="id" javaType="Long" />
        </table> -->

        <table tableName="CARDUSER_MASTER" domainObjectName="CardUserMaster"
            schema="CACISISS" enableSelectByExample="false"
            enableDeleteByExample="false" enableCountByExample="false"
            enableUpdateByExample="false">
        </table>
    </context>
</generatorConfiguration>
我不知道是什么问题。我连接到服务器上的数据库


任何解决方案都将不胜感激。谢谢。

首先,请更改此项:

<jdbcConnection driverClass="com.mysql.jdbc.Driver"
        connectionURL="myurl" userId="username"
        password="password">
    </jdbcConnection>



看看它是否适合你

我已经正确配置了所有东西,并且意识到这个错误的原因也可能是插件找不到ojdbc jar。对我来说,有效的方法是在生成器文件中添加classPathEntry

 <generatorConfiguration>    
  <classPathEntry location="/Users/adaprognotebook/lib/ojdbc6.jar"/>     
  <context id="system" >
    <plugin type="org.mybatis.generator.plugins.CaseInsensitiveLikePlugin" />
...

...

谢谢。我还没有认识到那个错误。谢谢。
<jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver"
        connectionURL="myurl" userId="username"
        password="password">
    </jdbcConnection>
 <generatorConfiguration>    
  <classPathEntry location="/Users/adaprognotebook/lib/ojdbc6.jar"/>     
  <context id="system" >
    <plugin type="org.mybatis.generator.plugins.CaseInsensitiveLikePlugin" />
...