elunez / eladmin

eladmin jpa 版本:项目基于 Spring Boot 2.6.4、 Jpa、 Spring Security、Redis、Vue的前后端分离的后台管理系统,项目采用分模块开发方式, 权限控制采用 RBAC,支持数据字典与数据权限管理,支持一键生成前后端代码,支持动态路由
https://eladmin.vip/demo
Apache License 2.0
21.32k stars 7.36k forks source link

生成后台代码报错,cn.hutool.extra.template.TemplateException: No template found ! Please add one of template jar to your project ! #183

Closed ding2022 closed 5 years ago

ding2022 commented 5 years ago

cn.hutool.extra.template.TemplateException: No template found ! Please add one of template jar to your project !

at cn.hutool.extra.template.engine.TemplateFactory.doCreate(TemplateFactory.java:75)
at cn.hutool.extra.template.engine.TemplateFactory.create(TemplateFactory.java:32)
at cn.hutool.extra.template.TemplateUtil.createEngine(TemplateUtil.java:32)
at com.xuantu.khronos.util.GenUtil.generatorCode(GenUtil.java:138)
at com.xuantu.khronos.GeneratorTest.generator(GeneratorTest.java:63)

TemplateFactory 类中需要import com.jfinal.template.Engine;

pom.xml中没有jfinal相关的依赖 需要jfinal吗?是那个版本?

ding2022 commented 5 years ago

已解决

org.springframework.boot spring-boot-starter-freemarker
bruceli19900712 commented 4 years ago

你好怎么解决的? 版本问题么

ding2022 commented 4 years ago

pom文件中增加

org.springframework.boot spring-boot-starter-freemarker
cheungjingyu commented 3 years ago

打包后,出现这个错误,按照这个方法并没有解决