SpringSource Roo Controller Removal

流过昼夜 提交于 2020-01-04 03:56:08

问题


Environment: Windows XP, SpringSource Tool Suite 2.3.2, Roo 1.0.2.Release, Java 1.6.0_10, tc Server 6.0

I'm using the canned Roo generated code. I created an entity and associated controller. Then deleted both classes. The problem I'm seeing is the Roo created home page still shows the "Create/List" section for the deleted classes. I'm executing this within the tc Server, within Eclipse. Any ideas on how to get Roo to update the home page?

Thanks, Steve


回答1:


Got the answer. I needed to manually edit WEB-INF/views/menu.jspx, removing the section related to the controller. I also noticed a subdirectory in WEB-INF/views related to the controller that I removed just to keep things clean. It seems to me Roo should do this for me, since it created the entries initially.



来源:https://stackoverflow.com/questions/2641037/springsource-roo-controller-removal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!