Spring Boot 2 Rest Api Example
Posted chenqr
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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.
以上是关于Spring Boot 2 Rest Api Example的主要内容,如果未能解决你的问题,请参考以下文章