Base Model Output Dir: D:\IDEA2018_3_2_work\work\du-config-tools/../src/model/base
Exception in thread "main" java.lang.IllegalArgumentException: File not found in CLASSPATH or JAR : "com/jfinal/plugin/activerecord/generator/base_model_template.jf"
at com.jfinal.template.source.ClassPathSource.<init>(ClassPathSource.java:67)
at com.jfinal.template.source.ClassPathSourceFactory.getSource(ClassPathSourceFactory.java:29)
at com.jfinal.template.Engine.buildTemplateBySourceFactory(Engine.java:158)
at com.jfinal.template.Engine.getTemplate(Engine.java:145)
at com.jfinal.plugin.activerecord.generator.BaseModelGenerator.genBaseModelContent(BaseModelGenerator.java:113)
at com.jfinal.plugin.activerecord.generator.BaseModelGenerator.generate(BaseModelGenerator.java:103)
at com.jfinal.plugin.activerecord.generator.Generator.generate(Generator.java:278)
at com.config.tools.common.config.ActiveRecordPluginConfig.main(ActiveRecordPluginConfig.java:102)
Disconnected from the target VM, address: '127.0.0.1:56648', transport: 'socket'
https://gitee.com/jfinal/activerecord/tree/master/src/main/java/com/jfinal/plugin/activerecord/generator
然后将模板文件放入 src/main/resources 下面,最后配置一下:
generator.setBaseModelTemplate("base_model_template.jf");
其它几个也这样来操作