Search code examples
springrestcontrollerannotations

Defining @Annotations shows full package path instead of the @Annotation


how can i possibly fix this i don't want to see the full package path.. help enter image description here

I have not found info regarding this...


Solution

  • At the top, add this:

    import org.springframework.web.bind.annotation.RestController;
    
    @RestController
    public class RestController