eclipse使用generatorConfig.xml生成mapper 10
<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEgeneratorConfigurationPUBLIC"-//mybatis....
<?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\47943\.m2\repository\mysql\mysql-connector-java\5.1.21\mysql-connector-java-5.1.21.jar"/> <context id="context1"> <jdbcConnection connectionURL="${jdbc.url}" driverClass="${jdbc.driver}" password="${jdbc.password}" userId="${jdbc.username}" /> <javaModelGenerator targetPackage="com.ym.entity" targetProject="./src/main/java" /> <sqlMapGenerator targetPackage="mappers" targetProject="./src/main/resources/mybatis" /> <javaClientGenerator targetPackage="com.ym.dao" targetProject="./src/main/java" type="XMLMAPPER" /> <table tableName="student"> <columnOverride column="s_id" property="s_id" /> <columnOverride column="s_name" property="s_name" /> <columnOverride column="sex" property="sex" /> <columnOverride column="password" property="password" /> <columnOverride column="c_id" property="c_id" /> <columnOverride column="class_id" property="class_id" /> </table> </context></generatorConfiguration>运行时报错
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询