注解

1、@SpringBootApplication:作用域主启动类

参考:https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-using-springbootapplication-annotation.html

2、@RestController VS @Controller:作用于class

@RestController == @Controller + @ResponseBody

posted @ 2018-04-08 14:20  lvlin241  阅读(102)  评论(0编辑  收藏  举报