Path for project must have only one segment
阿新 • • 發佈:2018-11-17
分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow
也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!
1、錯誤描述
Unexpected error while running MyBatis Generator.Path for project must have only one segment.
2、錯誤原因
專案目標配置出錯
<javaModelGenerator targetPackage="com.you.weixin.model" targetProject="../src/main/java"> <property name="enableSubPackages" value="true" /> <property name="trimStrings" value="true" /> </javaModelGenerator>
3、解決辦法
<javaModelGenerator targetPackage="com.you.weixin.model" targetProject="WXOCP"> <property name="enableSubPackages" value="true" /> <property name="trimStrings" value="true" /> </javaModelGenerator>
將targetProject修改為專案名稱