Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (default-

Source: Internet
Author: User
Tags generator numeric
Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (DEFAULT-CLI) on project Ssm:execution Default-cli of goal Org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate failed: Exception getting JDBC Driver:com.mysql.jdbc.Driver [Help 1]

[ERROR]


<?xml version= "1.0" encoding= "UTF-8"? ><! DOCTYPE generatorconfiguration Public "-//mybatis.org//dtd mybatis Generator Configuration 1.0//en" "http:
            Mybatis.org/dtd/mybatis-generator-config_1_0.dtd "> <generatorConfiguration> <classpathentry
    location= "C:\Users\jaer\.m2\repository\mysql\mysql-connector-java\6.0.3\mysql-connector-java-6.0.3.jar"/> <context id= "Testtables" targetruntime= "MyBatis3" > <commentGenerator> <!--whether to remove auto-generated annotations True: Yes: false: No--<property name= "suppressallcomments" value= "true"/> </commentgenerato r> <!--database connection information: Driver class, connection address, user name, password--<!--<jdbcconnection driverclass= "${jdbc.driver}"-- <!--connectionurl= "${jdbc.url}"-<!--userid= "${jdbc.username}"-<!--password= "${jdbc.password
  } ">--> <!--</jdbcConnection>--> <jdbcconnection driverclass=" Com.mysql.jdbc.Driver "                      Connectionurl= "Jdbc:mysql://127.0.0.1:3306/test?characterencoding=utf-8" userid= "root"  Password= "" > </jdbcConnection> <!--default False to parse the JDBC DECIMAL and NUMERIC types into integers, True to parse the JDBC DECIMAL and NUMERIC types to Java.math.BigDecimal-<javaTypeResolver> <property N
        Ame= "Forcebigdecimals" value= "false"/> </javaTypeResolver> <!--targetproject: Generate POS class Location-- <javamodelgenerator targetpackage= "Cn.ljaer.ssm.po" targetproject= "Src\main\java" &G
            T
            <!--enablesubpackages: Do you want the schema to be the suffix of the package--<property name= "Enablesubpackages" value= "false"/> <!--the value returned from the database is cleared before and after the space-<property name= "Trimstrings" value= "true"/> </javamod elgenerator> <!--targetproject:mapper Map file generated location-<sqlmapgenerator targetpackage= "Cn.ljaer.s Sm.mapper"targetproject=" Src\main\resources "> <!--enablesubpackages: Do you want the schema to be the suffix of the package--  > <property name= "enablesubpackages" value= "false"/> </sqlMapGenerator> <!--
                             Targetpackage:mapper interface generated Location--<javaclientgenerator type= "Xmlmapper" targetpackage= "Cn.ljaer.ssm.mapper" 
            targetproject= "Src\main\java" > <!--enablesubpackages: Do you want the schema to be a suffix of the package--  <property name= "Enablesubpackages" value= "false"/> </javaClientGenerator> <!-- Specify database table--<table tablename= "user" ></table> <!--some table fields need to specify Java type <table Sch
    Ema= "Tablename=" "> <columnoverride column=" "javatype=" "/> </table>-
 </context> </generatorConfiguration>

Modify the version of the MySQL connection jar package to 5.1.30 normal

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.