-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
生成代码无后端代码,freemarker报错 #7643
Comments
你是什么系统 |
我是MacOS 15,也有同事Windows11 x86_64也和我一模一样的故障症状无法生成 |
看这意思,currentDate值有问题?
|
你的项目路径是不是有中文或者空格 |
那神奇了,如何重现 |
我发现了100%重现步骤,代码生成不能生成到项目所在目录,但是报错信息似乎跟这个原因没有联系,选择项目外其他任意一个目录即可100%生成成功,请问这是bug吗? |
目录有写权限吗 |
包括之前提到的另外一个无法生成代码使用Windows系统环境的开发者,更换生成目录后也可以生成了 |
那还是目录权限问题 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
版本号:
3.7.2
问题描述:
生成代码无后端代码只有前端代码,后端freemarker关键报错如下:
2024-12-24 20:04:09.942 [http-nio-8080-exec-1] ERROR org.jeecgframework.codegenerate.generate.impl.a.a:99 - java.lang.IllegalStateException: cannot process templateString:erp/onetomany/java/${bussiPackage}/${entityPackage}/vue/V${currentDate}1__menu_insert${entityName}.sql cause:freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> currentDate [in template "templateString..." at line 1, column 60]
同样的表,从git拉取的同一个分支,使用远程数据库与redis,除jeecg_config.properties内project_path改为自己本地项目地址外其他所有配置全部一致,其他同项目开发者可以正常生成;
出现问题的开发者所有表(包括自带示例表)全部无法生成
错误截图:
友情提示:
The text was updated successfully, but these errors were encountered: