Spingboot接口Http协议开发实战
1.配置:
1。@ResController and @RequestMapping是springMVC的注解,不是springboot特有的
2.@RestController = @Controller+ResponseBody
3.@SpingBootApplication = @Configuration + @EnableAutoConfiguration + @ComponentScanlocalhost:8080
Spingboot接口Http协议开发实战
1.配置:
1。@ResController and @RequestMapping是springMVC的注解,不是springboot特有的
2.@RestController = @Controller+ResponseBody
3.@SpingBootApplication = @Configuration + @EnableAutoConfiguration + @ComponentScanlocalhost:8080