在项目中jfinal_demo_for_maven 运行_JFinalDemoGenerator无法生成实体

E:\installsoft\java\jre8\jdk8\bin\java -javaagent:E:\installsoft\ideaIU-2017.2.win\lib\idea_rt.jar=63405:E:\installsoft\ideaIU-2017.2.win\bin -Dfile.encoding=UTF-8 -classpath E:\installsoft\java\jre8\jdk8\jre\lib\charsets.jar;E:\installsoft\java\jre8\jdk8\jre\lib\deploy.jar;E:\installsoft\java\jre8\jdk8\jre\lib\ext\access-bridge-64.jar;E:\installsoft\java\jre8\jdk8\jre\lib\ext\cldrdata.jar;E:\installsoft\java\jre8\jdk8\jre\lib\ext\dnsns.jar;E:\installsoft\java\jre8\jdk8\jre\lib\ext\jaccess.jar;E:\installsoft\java\jre8\jdk8\jre\lib\ext\jfxrt.jar;E:\installsoft\java\jre8\jdk8\jre\lib\ext\localedata.jar;E:\installsoft\java\jre8\jdk8\jre\lib\ext\nashorn.jar;E:\installsoft\java\jre8\jdk8\jre\lib\ext\sunec.jar;E:\installsoft\java\jre8\jdk8\jre\lib\ext\sunjce_provider.jar;E:\installsoft\java\jre8\jdk8\jre\lib\ext\sunmscapi.jar;E:\installsoft\java\jre8\jdk8\jre\lib\ext\sunpkcs11.jar;E:\installsoft\java\jre8\jdk8\jre\lib\ext\zipfs.jar;E:\installsoft\java\jre8\jdk8\jre\lib\javaws.jar;E:\installsoft\java\jre8\jdk8\jre\lib\jce.jar;E:\installsoft\java\jre8\jdk8\jre\lib\jfr.jar;E:\installsoft\java\jre8\jdk8\jre\lib\jfxswt.jar;E:\installsoft\java\jre8\jdk8\jre\lib\jsse.jar;E:\installsoft\java\jre8\jdk8\jre\lib\management-agent.jar;E:\installsoft\java\jre8\jdk8\jre\lib\plugin.jar;E:\installsoft\java\jre8\jdk8\jre\lib\resources.jar;E:\installsoft\java\jre8\jdk8\jre\lib\rt.jar;E:\installsoft\java\jre8\jdk8\jre\lib\javax.persistence.jar;E:\installsoft\ideaIU-2017.2.win\workspace\jfinal\jfinal-3.4_demo_for_maven\jfinal_demo_for_maven\target\classes;C:\Users\Administrator\.m2\repository\com\jfinal\jetty-server\8.1.8\jetty-server-8.1.8.jar;C:\Users\Administrator\.m2\repository\org\eclipse\jetty\jetty-xml\8.1.8.v20121106\jetty-xml-8.1.8.v20121106.jar;C:\Users\Administrator\.m2\repository\org\eclipse\jetty\jetty-util\8.1.8.v20121106\jetty-util-8.1.8.v20121106.jar;C:\Users\Administrator\.m2\repository\org\eclipse\jetty\jetty-servlet\8.1.8.v20121106\jetty-servlet-8.1.8.v20121106.jar;C:\Users\Administrator\.m2\repository\org\eclipse\jetty\jetty-security\8.1.8.v20121106\jetty-security-8.1.8.v20121106.jar;C:\Users\Administrator\.m2\repository\org\eclipse\jetty\jetty-server\8.1.8.v20121106\jetty-server-8.1.8.v20121106.jar;C:\Users\Administrator\.m2\repository\org\eclipse\jetty\orbit\javax.servlet\3.0.0.v201112011016\javax.servlet-3.0.0.v201112011016.jar;C:\Users\Administrator\.m2\repository\org\eclipse\jetty\jetty-continuation\8.1.8.v20121106\jetty-continuation-8.1.8.v20121106.jar;C:\Users\Administrator\.m2\repository\org\eclipse\jetty\jetty-http\8.1.8.v20121106\jetty-http-8.1.8.v20121106.jar;C:\Users\Administrator\.m2\repository\org\eclipse\jetty\jetty-io\8.1.8.v20121106\jetty-io-8.1.8.v20121106.jar;C:\Users\Administrator\.m2\repository\com\jfinal\jfinal\3.4\jfinal-3.4.jar;C:\Users\Administrator\.m2\repository\cglib\cglib-nodep\3.2.5\cglib-nodep-3.2.5.jar;C:\Users\Administrator\.m2\repository\log4j\log4j\1.2.16\log4j-1.2.16.jar;C:\Users\Administrator\.m2\repository\mysql\mysql-connector-java\5.1.44\mysql-connector-java-5.1.44.jar;C:\Users\Administrator\.m2\repository\com\alibaba\druid\1.0.29\druid-1.0.29.jar;E:\installsoft\java\jre8\jdk8\lib\jconsole.jar;E:\installsoft\java\jre8\jdk8\lib\tools.jar;C:\Users\Administrator\.m2\repository\com\jfinal\cos\2017.5\cos-2017.5.jar com.demo.common.model._JFinalDemoGenerator

Build TableMeta ...

Generate base model ...

Base Model Output Dir: E:\installsoft\ideaIU-2017.2.win\workspace\jfinal\jfinal-3.4_demo_for_maven\jfinal_demo_for_maven/src/main/java/com/demo/common/model/base

Generate model ...

Model Output Dir: E:\installsoft\ideaIU-2017.2.win\workspace\jfinal\jfinal-3.4_demo_for_maven\jfinal_demo_for_maven/src/main/java/com/demo/common/model/base/..

Generate MappingKit file ...

MappingKit Output Dir: E:\installsoft\ideaIU-2017.2.win\workspace\jfinal\jfinal-3.4_demo_for_maven\jfinal_demo_for_maven/src/main/java/com/demo/common/model/base/..

Generate complete in 0 seconds.


Process finished with exit code 0


评论区

JFinal

2018-07-12 20:44

没有任何异常,按照输出的路径去资源管理器里面找一下生成的文件即可,例如去下面这个目录下面去找 base model:
E:\installsoft\ideaIU-2017.2.win\workspace\jfinal\jfinal-3.4_demo_for_maven\jfinal_demo_for_maven/src/main/java/com/demo/common/model/base

lwcompany

2018-07-12 20:57

修改了_mappingkit文件增加了arp.addMapping("baseblogtest", "id",BaseBlogTest.class);控制台输出Error:(21, 65) java: 不兼容的类型: java.lang.Class无法转换为java.lang.Class>

lwcompany

2018-07-12 20:59

BaseBlog.java 文件
public abstract class BaseBlogTest> extends Model implements IBean {

public M setId(Integer id) {
set("id", id);
return (M)this;
}

public Integer getId() {
return getInt("id");
}

public M setTitle(String title) {
set("title", title);
return (M)this;
}

public String getTitle() {
return getStr("title");
}

public M setContent(String content) {
set("content", content);
return (M)this;
}

public String getContent() {
return getStr("content");
}

热门反馈

扫码入社