第一个SpringBoot程序:
@RestController
public class HelloController{
@RequestMapping("/hello")
public String hello(){
return "Hello @ Spring Boot!!!";
}
}
单元测试:
@SpringBootTest
public class HelloTest{
@Test
public void hello(){
System.out.println("Hello Spring Boot Test");
}
}