Java Controller Not Working But Restcontroller Working In Spring

Java Controller Not Working But Restcontroller Working In Spring