zoukankan      html  css  js  c++  java
  • <<Java RESTful Web Service实战>> 读书笔记

    <<Java RESTful Web Service实战>> 读书笔记

    第一章   JAX-RS2.0入门

    REST (Representational State ransfer) 表述性状态转移

    REST 具有跨平台跨语言的优势

    RPC请求都是HTTP协议的POST方法,使用SOAP协议和HTTP协议

    RPC 是面向方法的调用

    REST 是面向资源状态的

    架构风格  RPC、REST、MVC

    JAX-RS 、JAX-WS

    Jersey

    第二章JAX-RS2.0快速实现

    J2SE环境 (jersey)

    Servlet容器(jetty,tomcat)

    J2EE容器(GlassFish)

    WASL(Web Application Description Language)

    WSDL(Web Services Description Language )

    SOAP (Simple Object Access Protocol)

    服务提供者4种类型

    结合spring 可以轻松实现事务管理与bean容器

    第三章Api设计

    安全性

    幂等性

    Post的两种使用  1. 代表更新与添加  2.把具体的方法写入到post头部

    资源路径

    Scheme://host:port/path?queryString

    问号(?)用来分隔查询字符串的

    逗号(,)用来分隔有序的作用域

    分号(;)用来隔无序的作用域

    可用中画线和下画线来作用辅助

    REST内容协商与@Produces 说明返回类型 @Consumes限制请求类型

    CI (Continuous Integration) 持续集成

    CD(Continuous Delivery ) 持续交付

    服务器与浏览器通信

    1. polling技术:客户端轮询
    2. Comet技术:反向ajax与长轮询
    3. SSE技术:HTML5技术的一部分,定义了服务器推送技术的标准规范
    4. WebSocket技术

    版本控制

    1. url中加版本号
    2. 在head中加班版本号
  • 相关阅读:
    Data Structure and Algorithm
    Data Structure and Algorithm
    Data Structure and Algorithm
    Data Structure and Algorithm
    Data Structure and Algorithm
    Data Structure and Algorithm
    Data Structure and Algorithm
    Data Structure and Algorithm
    Data Structure and Algorithm
    Data Structure and Algorithm
  • 原文地址:https://www.cnblogs.com/liuxm2017/p/9803104.html
Copyright © 2011-2022 走看看