You get only the name because you return only the name return "login";
. It's @RestController
and this controller returns data rather than a view; because of this, you get only content that you return from method.
If you want to show view with this name you need to use Spring MVC, see this example.