change @Controller to @RestController
update web.xml
change @Controller to @RestController
change @Controller to @RestController