Mac 本踩的坑—mybatis 逆向工程创建失败

执行成功,但是没有生成文件



<generatorConfiguration>

    
  <context id="DB2Tables" targetRuntime="MyBatis3">
    
    <jdbcConnection driverClass="com.mysql.jdbc.Driver"
        connectionURL="jdbc:mysql://localhost:3306/mybatis?allowMultiQueries=true"
        userId="root"
        password="root">
    jdbcConnection>

    
    <javaTypeResolver >
      <property name="forceBigDecimals" value="false" />
    javaTypeResolver>

    
    <javaModelGenerator targetPackage="com.lxy.mybatis.bean" 
            targetProject="./src">
      <property name="enableSubPackages" value="true" />
      <property name="trimStrings" value="true" />
    javaModelGenerator>

    
    <sqlMapGenerator targetPackage="com.lxy.mybatis.dao"  
        targetProject="./conf">
      <property name="enableSubPackages" value="true" />
    sqlMapGenerator>

    
    <javaClientGenerator type="XMLMAPPER" targetPackage="com.atguigu.mybatis.dao"  
        targetProject="./src">
      <property name="enableSubPackages" value="true" />
    javaClientGenerator>

    
    <table tableName="t_dept" domainObjectName="Department">table>
    <table tableName="t_employee" domainObjectName="Employee">table>
  context>
generatorConfiguration>
windows 的路径写法 “.\src”  而Mac和Linux 中是“./src”

你可能感兴趣的:(mac)