title: Rest Controller works just for Application class
body: <p>I'm trying to do a getmapping method using rest-api which will return as a JSON on localhost: 8080. When I do this from the default Application class it works great but when I move this functionality to another class nothing happens. Could someone help me with this, please?</p>
  <p><img src="https://i.stack.imgur.com/LGkLZ.png" alt="Application Class" /></p>
  <p><img src="https://i.stack.imgur.com/2myaH.png" alt="BookController Class" /></p>