spring roo 备份命令丢失了我的文件
我生成了 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查此 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.