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修改为项目名称
再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow