Closed TomYule closed 4 years ago
更新之后 再生成代码 解决了 应该是缓存了 表结构 数据
更新之后 再生成代码 解决了 应该是缓存了 表结构 数据
我现在拷贝最新的代码,然后使用代码生成的时候,还是出现同样的问题,可以麻烦看看吗?感谢
这是网页里面报错的提示,如下:
cn.hutool.extra.template.TemplateException: InvalidReferenceException: The following has evaluated to null or missing: ==> pkColumnType [in template "admin/Dto.ftl" at line 26, column 15] ---- Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #if !auto && pkColumnType = "Long" [in template "admin/Dto.ftl" at line 26, column 1] ----
版本: v2.5 环境:本地 复现步骤: sql
生成代码截图![image](https://user-images.githubusercontent.com/13266764/92446020-cd295980-f1e7-11ea-94ec-957b400395b0.png)
日志提供: