Skip to content
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

使用代码生成器生成代码,生成的路径中不能包含. #367

Open
5 of 15 tasks
yangdecai opened this issue Dec 27, 2024 · 0 comments
Open
5 of 15 tasks
Assignees
Labels
优化 Good for newcomers

Comments

@yangdecai
Copy link

前提

在 [ ] 中间输入 x, 就表示勾选该项

  • 举个栗子

️ 提问之前,请检查以下列表,如果忽略此问题模板,您的问题将直接关闭!

  • 确保已经将文档clone到本地,并使用Markdown工具阅读了全文 在线文档
  • 确保你的代码是最新版本 或 下载最新版本代码能复现
  • 确保已经在 issuesdiscussionsgoogle 查找了相关问题

版本信息:

  • JDK 版本(包括小版本号)(必填) :

    • 8.x
    • 11.x
    • 17.x
    • 其他 (____________)
  • 项目模式(必填):

    • lamp-datasource-max
    • lamp-none-flex
  • 源码版本(必填):

    • 5.0.4
    • 3.?.?
  • MySQL(必填):

    • mysql 5.7.x
    • mysql 8.x.x
    • 其他 (____________)
  • Nacos(必填): 2.4.3

问题描述:

提示: 遇到问题时,请先按以下步骤寻找答案:

  • 请先尝试阅读 文档
  • 请下载作者提供的最新代码或指定分支的代码到本地,启动看看是否遇到同样的问题。以排除是作者代码的问题,还是你们项目上修改产生的问题
  • 问题描述步骤尽可能详细,想象一下,你们公司同事给你提问题时,你看不懂提的问题是什么心情?

按照上述步骤排查后,仍然无法解决,请写出你的问题,作者会尽可能的帮助你:
在使用代码生成器时,如果生成的路径中含有.(英文句号),生成的路径不正确
image

最后的生成的路径如下图,应该是E:\gitproject\lamp\5.0\lamp-datasource-max下面,从日志可以看出生成的路径是E:\gitproject\lamp\5\0\lamp-datasource-max
image

报错日志

2024-12-27 14:44:44.229:[ INFO] [33520] [ab0aa1a5478d43b2a0d4722427ced1be] [XNIO-2 task-6:1504918] [t.tangyh.lamp.generator.utils.inner.PackageUtils.lambda$getImportPackages$1:322] 忽略生成 Echo#dictType : 
[lamp-boot-server-datasource:18760:1:2] 2024-12-27 14:44:44.230:[ INFO] [33520] [ab0aa1a5478d43b2a0d4722427ced1be] [XNIO-2 task-6:1504919] [t.tangyh.lamp.generator.utils.inner.PackageUtils.lambda$getImportPackages$1:327] 忽略生成 Echo#ref : 
[lamp-boot-server-datasource:18760:1:2] 2024-12-27 14:44:44.232:[ INFO] [33520] [ab0aa1a5478d43b2a0d4722427ced1be] [XNIO-2 task-6:1504921] [t.tangyh.lamp.generator.utils.inner.PackageUtils.lambda$getImportPackages$1:333] 忽略生成 Echo#api : ENUM_API
[lamp-boot-server-datasource:18760:1:2] 2024-12-27 14:44:44.633:[ INFO] [33520] [ab0aa1a5478d43b2a0d4722427ced1be] [XNIO-2 task-6:1505322] [t.t.l.g.service.impl.DefGenTableServiceImpl.writeFile:662] 成功生成=E:\gitproject\lamp\5\0\lamp-datasource-max\lamp-car\lamp-car-controller\src\main\java\top\tangyh\lamp\dy\controller\DyAccountController.java
[lamp-boot-server-datasource:18760:1:2] 2024-12-27 14:44:44.649:[ INFO] [33520] [ab0aa1a5478d43b2a0d4722427ced1be] [XNIO-2 task-6:1505338] [t.t.l.g.service.impl.DefGenTableServiceImpl.writeFile:662] 成功生成=E:\gitproject\lamp\5\0\lamp-datasource-max\lamp-car\lamp-car-biz\src\main\java\top\tangyh\lamp\dy\service\DyAccountService.java
[lamp-boot-server-datasource:18760:1:2] 2024-12-27 14:44:44.674:[ INFO] [33520] [ab0aa1a5478d43b2a0d4722427ced1be] [XNIO-2 task-6:1505363] [t.t.l.g.service.impl.DefGenTableServiceImpl.writeFile:662] 成功生成=E:\gitproject\lamp\5\0\lamp-datasource-max\lamp-car\lamp-car-biz\src\main\java\top\tangyh\lamp\dy\service\impl\DyAccountServiceImpl.java
[lamp-boot-server-datasource:18760:1:2] 2024-12-27 14:44:44.681:[ INFO] [33520] [ab0aa1a5478d43b2a0d4722427ced1be] [XNIO-2 task-6:1505370] [t.t.l.g.service.impl.DefGenTableServiceImpl.writeFile:662] 成功生成=E:\gitproject\lamp\5\0\lamp-datasource-max\lamp-car\lamp-car-biz\src\main\java\top\tangyh\lamp\dy\manager\DyAccountManager.java
[lamp-boot-server-datasource:18760:1:2] 2024-12-27 14:44:44.691:[ INFO] [33520] [ab0aa1a5478d43b2a0d4722427ced1be] [XNIO-2 task-6:1505380] [t.t.l.g.service.impl.DefGenTableServiceImpl.writeFile:662] 成功生成=E:\gitproject\lamp\5\0\lamp-datasource-max\lamp-car\lamp-car-biz\src\main\java\top\tangyh\lamp\dy\manager\impl\DyAccountManagerImpl.java
[lamp-boot-server-datasource:18760:1:2] 2024-12-27 14:44:44.697:[ INFO] [33520] [ab0aa1a5478d43b2a0d4722427ced1be] [XNIO-2 task-6:1505386] [t.t.l.g.service.impl.DefGenTableServiceImpl.writeFile:662] 成功生成=E:\gitproject\lamp\5\0\lamp-datasource-max\lamp-car\lamp-car-biz\src\main\java\top\tangyh\lamp\dy\mapper\DyAccountMapper.java
[lamp-boot-server-datasource:18760:1:2] 2024-12-27 14:44:44.728:[ INFO] [33520] [ab0aa1a5478d43b2a0d4722427ced1be] [XNIO-2 task-6:1505417] [t.t.l.g.service.impl.DefGenTableServiceImpl.writeFile:662] 成功生成=E:\gitproject\lamp\5\0\lamp-datasource-max\lamp-car\lamp-car-biz\src\main\resources\mapper_dy\base\DyAccountMapper.xml
[lamp-boot-server-datasource:18760:1:2] 2024-12-27 14:44:44.760:[ INFO] [33520] [ab0aa1a5478d43b2a0d4722427ced1be] [XNIO-2 task-6:1505449] [t.t.l.g.service.impl.DefGenTableServiceImpl.writeFile:662] 成功生成=E:\gitproject\lamp\5\0\lamp-datasource-max\lamp-car\lamp-car-entity\src\main\java\top\tangyh\lamp\dy\entity\DyAccount.java
[lamp-boot-server-datasource:18760:1:2] 2024-12-27 14:44:44.789:[ INFO] [33520] [ab0aa1a5478d43b2a0d4722427ced1be] [XNIO-2 task-6:1505478] [t.t.l.g.service.impl.DefGenTableServiceImpl.writeFile:662] 成功生成=E:\gitproject\lamp\5\0\lamp-datasource-max\lamp-car\lamp-car-entity\src\main\java\top\tangyh\lamp\dy\vo\save\DyAccountSaveVO.java
[lamp-boot-server-datasource:18760:1:2] 2024-12-27 14:44:44.800:[ INFO] [33520] [ab0aa1a5478d43b2a0d4722427ced1be] [XNIO-2 task-6:1505489] [t.t.l.g.service.impl.DefGenTableServiceImpl.writeFile:662] 成功生成=E:\gitproject\lamp\5\0\lamp-datasource-max\lamp-car\lamp-car-entity\src\main\java\top\tangyh\lamp\dy\vo\update\DyAccountUpdateVO.java
[lamp-boot-server-datasource:18760:1:2] 2024-12-27 14:44:44.812:[ INFO] [33520] [ab0aa1a5478d43b2a0d4722427ced1be] [XNIO-2 task-6:1505501] [t.t.l.g.service.impl.DefGenTableServiceImpl.writeFile:662] 成功生成=E:\gitproject\lamp\5\0\lamp-datasource-max\lamp-car\lamp-car-entity\src\main\java\top\tangyh\lamp\dy\vo\result\DyAccountResultVO.java
[lamp-boot-server-datasource:18760:1:2] 2024-12-27 14:44:44.821:[ INFO] [33520] [ab0aa1a5478d43b2a0d4722427ced1be] [XNIO-2 task-6:1505510] [t.t.l.g.service.impl.DefGenTableServiceImpl.writeFile:662] 成功生成=E:\gitproject\lamp\5\0\lamp-datasource-max\lamp-car\lamp-car-entity\src\main\java\top\tangyh\lamp\dy\vo\query\DyAccountPageQuery.java
[lamp-boot-server-datasource:18760:1:2] 2024-12-27 14:44:44.851:[ INFO] [33520] [ab0aa1a5478d43b2a0d4722427ced1be] [XNIO-2 task-6:1505540] [t.t.l.g.service.impl.DefGenTableServiceImpl.writeFile:662] 成功生成=E:\gitproject\lamp\5\0\lamp-datasource-max\lamp-car\初始化SQL_dy_account.sql
[lamp-boot-server-datasource:18760:1:2] 2024-12-27 14:44:44.879:[ INFO] [33520] [ab0aa1a5478d43b2a0d4722427ced1be] [XNIO-2 task-6:1505568] [t.t.l.g.service.impl.DefGenTableServiceImpl.writeFile:662] 成功生成=E:\gitproject\lamp\5\0\lamp-datasource-max\lamp-car\lamp-car-entity\src\main\java\top\tangyh\lamp\dy\enumeration\DyAccountTypeEnum.java

报错截图

重现步骤

  1. 访问了什么接口?
  2. 传递什么参数?
  3. 后端控制台报了什么错?
  4. 前端控制台报了什么错?

支持一下

如果该issue帮助了你, 麻烦给项目点个star, 并给当前issue回复一下 “👍” 或者 “已解决”.

@zuihou zuihou self-assigned this Dec 27, 2024
@zuihou zuihou added the 优化 Good for newcomers label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
优化 Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants