问题
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