Easter79 Easter79
2年前
springboot结合jwt实现基于restful接口的身份认证
基于restful接口的身份认证,可以采用jwt的方式实现,想了解jwt,可以查询相关资料,这里不做介绍~下面直接看如何实现1、首先添加jwt的jar包,pom.xml中添加依赖包:<dependency<groupIdio.jsonwebtoken</groupId
Easter79 Easter79
2年前
springboot2.0入门(三)
一、RESTFul风格API  1、优点:   1.)看Url就知道要什么资源2.)看httpmethod就知道针对资源干什么3.)看httpstatuscode就知道结果如何!(https://img2018.cnblogs.com/blog/1675975/201910/1675975201910041339307
Easter79 Easter79
2年前
SpringBoot2.0 基础案例分类目录,附源码地址
本文源码GitHub:知了一笑https://gitee.com/cicadasmile/springbootbaseSpringBoot2基础文章分类1、入门基础SpringBoot2.0基础案例(01):环境搭建和RestFul风格接口(http
Stella981 Stella981
2年前
071. ElasticSearch 应用场景及核心概念
1\.ES使用场景给网站/APP添加搜索功能。存储、分析数据。管理、交互、分析空间信息,将ES用于GIS。2\.ES简介Elasticsearch是一个基于Lucene构建的开源、分布式、RESTful接口全文检索引擎。Elast
可莉 可莉
2年前
071. ElasticSearch 应用场景及核心概念
1\.ES使用场景给网站/APP添加搜索功能。存储、分析数据。管理、交互、分析空间信息,将ES用于GIS。2\.ES简介Elasticsearch是一个基于Lucene构建的开源、分布式、RESTful接口全文检索引擎。Elast
Stella981 Stella981
2年前
CXF隐藏restful接口列表页面
隐藏所有在CXFServlet(web.xml)处设定hideservicelistpage<servlet<servletnameCXFServlet</servletname<servletclassorg.apache.cxf.transport.servlet.C
Stella981 Stella981
2年前
Spring AOP schema找不到报错
问题:使用jerseyspring构建RESTful服务,并将应用部署在不能连接外网的服务器上。部署时,报错信息如下,WARNING:IgnoredXMLvalidationwarningorg.xml.sax.SAXParseException:schema_reference.4:Failedtore
Stella981 Stella981
2年前
SpringBoot2.0 基础案例分类目录,附源码地址
本文源码GitHub:知了一笑https://gitee.com/cicadasmile/springbootbaseSpringBoot2基础文章分类1、入门基础SpringBoot2.0基础案例(01):环境搭建和RestFul风格接口(http
Stella981 Stella981
2年前
RESTful API 设计最佳实践
WebAPI近几年变得越来越火,而简洁的API设计在多后端系统交互应用中也变得尤为重要。通常,会使用RESTfulAPI来作为我们的WebAPI。本文介绍了几种简洁RESTfulAPI设计的最佳实践。使用的名词而不是动词使用名词来定义接口!(https://static.oschina.net/uploads
Easter79 Easter79
2年前
Swagger文档化restful接口
1、注解@Api:用在类上,说明该类的作用。@ApiOperation:注解来给API增加方法说明。@ApiImplicitParams :用在方法上包含一组参数说明。@ApiImplicitParam:用来注解来给方法入参增加说明。@ApiResponses:用于表示一组响应@ApiResponse:用在@ApiResponses