please i wrote this spring boot rest base application bellow, which when runs it starts the application but i can not call or been link to the REST Controller page/class .
this is the main class:
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@ComponentScan
public class SoccerglueApplication {
public static void main(String[] args) {
SpringApplication.run(SoccerglueApplication.class, args);
}
}
this is the controller class:
@RestController
@RequestMapping(value = "/root")
public class SoccerNewsAPI {
@GetMapping(value = "/in")
public String getMessage(){
return "Welcome to the Spring Boot Test"; }
}
Aucun commentaire:
Enregistrer un commentaire