Announcement Announcement Module
Collapse
No announcement yet.
automatically remove .aj file Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • automatically remove .aj file


    Hi, everybody, when I import org.springframework.validation.ObjectError
    in the controller , roo *.aj automatically remove the controller of the file, looking for a long time, not the cause, and I am confused, could you help me? thank you.

  • #2
    I am not clear on your question, Which controller are you talking about

    In practice if you have any additions you should do them to Java files and not to the aj files which are used by ROO.

    Comment


    • #3
      Reply hatim

      This is the code fragment:
      When UserException isn't commented out, the roo will be automatically deleted aj file. Until now I have not found the reasons for,. Could you help me?

      @RequestMapping("/register")
      public String register(@RequestParam("email") String email) throws UserException {
      Users user = (Users) Users.findUsersesByEmail(email).getSingleResult();
      if(user!= null){
      throw new UserException(“The mailbox has been registered! Do you forget your password?”);
      }
      }

      Comment


      • #4
        I am not sure why this happens, have you tied push in refactoring (see documentation related to that with Spring Tools Suite )

        Comment

        Working...
        X