@SpringBootApplication:Spring Boot的核心注解,用于开启自动配置,它组合了@Configuration、@EnableAutoConfiguration和@ComponentScan注解。通常放置于主类上。@EnableAutoConfiguration:告诉Spring Boot基于类路径设置、其它bean和各种属性设置来添加bean。通常这个注解是通过@SpringBootApplication间接使用的。@Configuration:表明该类使用Spring基于Java的配置。类中以@Bean注解标记的方法将被实例化为bean并管理。@ComponentScan:自动扫描并加载符合条件的组件或bean,一般与@Configuration一起使用。@RestController:是@Controller和@ResponseBody的结合体,用于创建RESTful的web服务。@RequestMapping