mac下的 <!-- javaBean生成在哪里 -->
<javaModelGenerator
targetPackage="com.atcrowdfunding.bean"
targetProject="../atcrowdfunding-bean/src/main/java">
<property name="enableSubPackages" value="true" />
<property name="trimStrings" value="true" />
</javaModelGenerator> <!-- sqlMap sql映射文件(xml mapper文件) -->
<sqlMapGenerator targetPackage="mybatis.mapper"
targetProject="../atcrowdfunding-manager-impl/src/main/resources">
<property name="enableSubPackages" value="true" />
</sqlMapGenerator> <!-- javaClient:java接口生成的地方 -->
<javaClientGenerator type="XMLMAPPER"
targetPackage="com.atcrowdfunding.mapper"
targetProject="../atcrowdfunding-manager-api/src/main/java">
<property name="enableSubPackages" value="true" />
</javaClientGenerator>
<table schema="" tableName="%"></table>
<!-- <table schema="TPermission" tableName="t_permission"></table> -->
</context>
mac系统和windows 系统下写文件路径,斜杆是反的。
以下是Windows系统下的STS,路径书写方式
<!-- javaBean生成在哪里 -->
<javaModelGenerator
targetPackage="com.atcrowdfunding.bean"
targetProject="..\atcrowdfunding-bean\src\main\java">
<property name="enableSubPackages" value="true" />
<property name="trimStrings" value="true" />
</javaModelGenerator> <!-- sqlMap sql映射文件(xml mapper文件) -->
<sqlMapGenerator targetPackage="mybatis.mapper"
targetProject="..\atcrowdfunding-manager-impl\src\main\resources">
<property name="enableSubPackages" value="true" />
</sqlMapGenerator> <!-- javaClient:java接口生成的地方 -->
<javaClientGenerator type="XMLMAPPER"
targetPackage="com.atcrowdfunding.mapper"
targetProject="..\atcrowdfunding-manager-api\src\main\java">
<property name="enableSubPackages" value="true" />
</javaClientGenerator> <!-- <table schema="" tableName="%"></table> -->
<table schema="TPermission" tableName="t_permission"></table>
</context>
为了找这个问题,基本花了两个小时