I created an entity called Card
and its CardController
. Since I committed an error when creating them, I deleted both and created the Card entity again.
The problem happens when I execute the following command to get the Controller back with the new Card fields:
web mvc all
Roo output is:
Found existing controller for mapping '/cards'.
Created SRC_MAIN_JAVA\com\entities\CardController.java
and when executed the /cards
path I keep seeing the OLD fields.
Moreover, if I remove the controller again (I've tried both in STS and directly from the filesystem) and I try this:
web mvc scaffold --class com.web.CardController --backingType com.entities.Card
the output keeps being:
Found existing controller for mapping '/cards'.
Created SRC_MAIN_JAVA\com\entities\CardController.java
So the question is: where is Roo finding the controller for /cards
and why, if it has found it, it creates it again in the wrong old package?