我正在将 IntelliJ 10 与 Spring Roo 项目结合使用。在 webmvc-config.xml (spring mvc 配置上下文文件)中,IntelliJ 允许我使用自动完成功能来填充图块视图的名称。但是,它似乎只允许自动完成 WEB-INF/layouts/layouts.xml 中的视图名称,它会忽略 /WEB-INF/views/**/views.xml 中定义的所有视图。有没有办法强制 IntelliJ 将这些文件识别为图块配置文件。
我觉得烦人的是,有一个 IntelliJ 检查将 的任何实例标记为如果找不到引用的视图,则会出现错误。现在这实际上并没有阻止任何东西的工作。但这很烦人。我只是想弄清楚这是否是 IntelliJ 中的一个错误,或者是否有我错过的设置。
I'm using IntelliJ 10 with a Spring Roo project. In the webmvc-config.xml (the spring mvc config context file) IntelliJ allows me to use autocomplete to fill the names of tiles views. However, it only seems to allow autocomoplete the names of views from WEB-INF/layouts/layouts.xml it ignores all the views defien din /WEB-INF/views/**/views.xml. Is there a way to force IntelliJ to recognize these files as tiles config files.
The thing i find annoying about this is that there is an IntelliJ inspection that marks any instance of <mvc:view-controller path="..." view-name="..."
as an error if it can't find the view refrenced. Now this doesn't actually stop anything from working. But it is annoying. I'm just trying to figure out if this is a bug in IntelliJ or if there is a setting I missed.
发布评论
评论(1)
感谢您向 YouTrack 提交问题,我们的开发人员将对此进行调查。
Thanks for filing the issue to YouTrack, our developers will investigate it.