houbin 发表于 2016-11-26 06:16:35

MyBatis Generator.Path for project must have only one segment.

MyBatis Generator.干嘛用的就不说了. 
使用
http://mybatis.googlecode.com/svn/sub-projects/generator/trunk/eclipse/UpdateSite/
安装插件可以在eclipse右键就可以生成代码了.
如果不安装这个插件,也可以在cmd下面运行
cmd cd进入src目录 运行
java -jar ../lib/mybatis-generator-core-1.3.1.jar -configfile ./config/MybatisGenerator.xml
 
如果是在eclipse插件下生成代码有可能会出现
Unexpected error while running MyBatis Generator.
 
Path for project must have only one segment.
 
解决方法 修改 targetProject 为自己工程的名字,如下图所示


 
 

 
页: [1]
查看完整版本: MyBatis Generator.Path for project must have only one segment.