Spring Roo 和网络脚手架问题
我正在使用Spring Roo。我从控制器中删除了 Spring Roo Web 脚手架注释,并删除了所有相关的 JSPX 文件。现在我出现以下错误:
方法'org.springframework.roo.classpath.details.MethodMetadataBuilder@d9c877'未能提供主体,尽管已被识别为ITD包含
有人可以帮助我解决它吗?谢谢!
I am using Spring Roo. I removed the Spring Roo web scaffolding annotation from my controller and deleted all the related JSPX files. Now I am the following error:
Method 'org.springframework.roo.classpath.details.MethodMetadataBuilder@d9c877' failed to provide a body, despite being identified for ITD inclusion
Can someone help me to troubleshoot it? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们遇到了同样的问题,并发现了这个:
http://forum.springsource .org/showthread.php?p=346913
但我们还没有找到问题的根源。
更新:
正如编辑提到的,重新运行
控制器 all --package ~.web
和 roo 似乎可以自行修复。
最后更新:
所以这个修复本身的原因是在 ApplicationConversionServiceFactoryBean 中,roo 期望在控制器中找到至少一个 @RooWebScaffold 注释,如果它们都消失了,它会不高兴。为了解决我们的问题,我们将 AspectJ 文件中的所有方法移至 java 文件中,并消除了该 bean 的 roo 管理。事情似乎又变得幸福了,至少现在是这样。
We're running into the same problem, and have found this:
http://forum.springsource.org/showthread.php?p=346913
But we haven't found the source of the issue.
UPDATE:
As edit mentions, re-run
controller all --package ~.web
and roo seems to fix itself.
LAST UPDATE:
So the reason this fixed itself was in the ApplicationConversionServiceFactoryBean, roo is expecting to find at least one @RooWebScaffold annotation in the Controllers, and if they are all gone, it isn't happy. To fix our problem, we moved all of the methods from the AspectJ file into the java file and eliminated the roo management of this bean too. Things seem to be happy again, at least for now.