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 为自己工程的名字,如下图所示


MyBatis Generator.Path for project must have only one segment._第1张图片

 

 


 

你可能感兴趣的:(mybatis,generator)