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.

猜你喜欢

转载自www.cnblogs.com/chenqr/p/11136160.html
今日推荐