i17c/AutoGenerator

使用发现content empty

Opened this issue · 1 comments

安装作者的最新版,发现执行生成命令的时候“content empty”,通过下载源码,创建的时候发现少了FreeMarker包,加载之后运行的插件是能够正常使用的。那么应该是打包plugin的时候没有把freemaker打包进去!

经过反复测试,是Velocity的日志文件不可达造成的,
可能windows系统权限不够,总之就是velocity.log找不到,
通过修改如下测试有效:
try { Properties properties = new Properties(); properties.load(TemplateUtil.class.getResourceAsStream("/velocity.properties")); velocityEngine.init(properties); } catch (IOException e) { e.printStackTrace(); }