@RestController 是spring提供的吗? 为微服务返回json格式 等同于 @Controller 和 @RequestBody 组合
springboot启动原理:springMvc注解方式启动,内置加载http内置服务器(内置tomcat)
@EnableAutoConfiguretion 扫描范围 默认当前类
springboot的优势?
1、整合第三方框架(maven子父关系依赖配置)
2、注解方式无配置文件()
3、内置http服务器(tomcat)
@RestController 是spring提供的吗? 为微服务返回json格式 等同于 @Controller 和 @RequestBody 组合
springboot启动原理:springMvc注解方式启动,内置加载http内置服务器(内置tomcat)
@EnableAutoConfiguretion 扫描范围 默认当前类
springboot的优势?
1、整合第三方框架(maven子父关系依赖配置)
2、注解方式无配置文件()
3、内置http服务器(tomcat)