spring roo 备份命令丢失了我的文件

发布于 2024-08-25 08:03:41 字数 118 浏览 5 评论 0原文

我生成了 spring roo 项目并将 .jspx 文件修改为我的样式。不幸的是,当我使用备份命令时,spring roo 会自动生成原始文件。因此,我的 .jspx 文件不是我的样式。我应该如何从这个命令恢复我的文件。

I generated spring roo project and modifies .jspx files to my styles. Unfortunately, when i used the backup command, spring roo was auto-generated files to the original one. Thus, my .jspx files are noy my styles. How should i do to recovery my files back from this command.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

知足的幸福 2024-09-01 08:03:41

检查此 JIRA 问题中有关“添加字段覆盖 *.jspx 中的更改”的评论。默认情况下,自动创建的视图 (.jspx) 由 Roo 维护。您可以

  • 通过设置“automaticallyMaintainView = false”来关闭此功能并自由编辑所有内容(当然,如果向实体添加字段,将不再对视图进行任何更改)

  • 使用 Roo 甚至不知道的自己的 jspx 文件< /p>

  • 等到
    Roo 1.1 其中 Roo 支持
    视图正在移动到元素级别(据我所知),
    请参阅这个问题的解释
    在评论中
    。我认为这将允许 .jspx 文件部分由用户管理,部分由 roo 管理。

Check the comment in this JIRA-Issue about "Adding field overwrites changes in *.jspx". By default, the automatically created views (.jspx) are maintained by Roo. You can

  • turn this off by setting "automaticallyMaintainView = false" and edit everything freely (of course, there will be no changes made to the views anymore if you add a field to an entity)

  • use your own jspx files that Roo doesn't even know about

  • wait until
    Roo 1.1 in which the Roo support for
    views is moving to the element level (as I understand it),
    see this issue where it is explained
    in the comments
    . I think this will allow for .jspx files which are partly user- and partly roo-managed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文