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