Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
@SpringBootApplication
public static void main(String[] args){
//启动springboot程序,启动spring容器,如果是web项目,启动内嵌的tomcat
SpringApplication.run(Application.class,args);
}}
创建一个spring mvc的controller
@Controller
public class HelloController {
@RequestMapping("/boot/hello")
public @ResponseBody String hello(){
return "Hello Spring Boot";
}
}
