Spring Boot 2 Rest Api Example

以下,将以一个post、get返回json数据格式的例子来讲解Rest Apis。

1. Maven Dependencies.

最重要的是 spring-boot-starter-parent 和 spring-boot-starter-web。 Starter web 依赖包含了spring-webmvc, spring-web, hibernate-validator, tomcat-embed-core, tomcat-embed-el, tomcat-embed-websocket, jackson-databind, jackson-datatype-jdk8, jackson-datatype-jsr310 and jackson-module-parameter-names.

posted on 2019-07-05 08:38  chenqr11  阅读(216)  评论(0编辑  收藏  举报