Springboot2.0整合RestEasy

匿名 (未验证) 提交于 2019-12-03 00:26:01

一、首先搭建Springboot框架

二、去Git地址

下载resteasy-spring-boot-starter文件并打成jar包(因为目前Maven仓库里没有)

Porm文件里的加强防御代码可以删除掉

三、添加Jar包到本地maven仓库

命令如下:mvn install:install-file -DgroupId=org.jboss.resteasy -DartifactId=resteasy-spring-boot-starter -Dversion=2.0.0.Final-SNAPSHOT -Dpackaging=jar -Dfile=D:\resteasy-spring-boot-starter.jar

四、添加解析json

<dependency>    <groupId>org.jboss.resteasy</groupId>    <artifactId>resteasy-jackson-provider</artifactId>    <version>${resteasy.version}</version> 

五、测试

使用PostMan测试方法


易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!