Tag:head

  • Talk about the iterate operation of the Flink datastream

    Time:2021-9-22

    order This paper mainly studies the iterate operation of the flick datastream example IterativeStream<Long> iteration = initialStream.iterate(); DataStream<Long> iterationBody = iteration.map (/*do something*/); DataStream<Long> feedback = iterationBody.filter(new FilterFunction<Long>(){ @Override public boolean filter(Long value) throws Exception { return value > 0; } }); iteration.closeWith(feedback); DataStream<Long> output = iterationBody.filter(new FilterFunction<Long>(){ @Override public boolean filter(Long value) throws Exception […]

  • The laravel 5.4 API allows cross domain access

    Time:2021-9-17

    The laravel 5.4 API allows cross domain access Requirement: Spa single page application request interface, error reporting XMLHttpRequest cannot load http://api.console.vms3.com/api/user. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:8080’ is therefore not allowed access. This means that the server response does not allow cross domain access Then we need to make the […]

  • Configure the global exception interceptor in springboot and return the self-determined HTTP error code to the front end

    Time:2021-9-16

    Create interceptor class and annotate @ controlleradvice annotation @ControllerAdvice public class GlobalExceptionAdvice { //Handle unknown exception @ExceptionHandler(Exception.class) @ResponseBody @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) public UnifyResponse handleException(HttpServletRequest request, Exception e){ String method = request.getMethod(); String requestUrl = request.getRequestURI(); System.out.println(method); System.out.println(requestUrl); System.out.println(e); Unifyresponse unifyresponse = new unifyresponse (9999, “server exception”, requesturl + “” + method); return unifyResponse; } } public class […]

  • Django 1.8 official document translation: 3-1-4 view decorator

    Time:2021-9-15

    View decorator Django provides several decorators for the view to support related HTTP services. Allowed HTTP methods django.views.decorators.httpThe decorator in the package can restrict access to the view based on the requested method. If the conditions are not met, it will returndjango.http.HttpResponseNotAllowed。 require_http_methods(requestmethodlist)[source] The restricted view can only the HTTP method specified by the service. […]

  • HTTP protocol (transmission mode of package & working principle of cache)

    Time:2021-9-13

    HTTP protocol (transmission mode of package & working principle of cache) This article is mainly aboutHTTPThe format of fixed length packet transmission and the format of variable length packet transmission in the protocol are briefly introducedHTTPThe working principle and application scenario of caching in the protocol. 1. HTTP package 1.1 HTTP package format The request […]

  • It’s design — why does MySQL use B + trees?

    Time:2021-8-26

    introduction I believe every background development engineer has been asked “what is the default storage engine of MySQL? What data structure is MySQL index? ” Such a problem. I believe everyone who is well prepared (familiar with the eight part essay) can easily answer “the default storage engine of MySQL is InnoDB, and the MySQL […]

  • Redis basic operation – List

    Time:2021-8-21

    Redis list is a simple string list, sorted by insertion order. You can add an element to the head (left) or tail (right) of the list A list can contain up to 232 – 1 element (4294967295, more than 4 billion elements per list).   1、 Inserts one or more values into the list header Command: […]

  • Manually fix the table head and roll the body.

    Time:2021-8-18

    The following is an example of using a simple and rough method to fix the head of the table and vertically scroll the excess part of the body: HTML part <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″ /> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″ /> <link rel=”stylesheet” href=”./table.css” /> <title>Document</title> </head> <body> <div class=”out-div”> <table <thead> <tr> < […]

  • Two way linked list: I’m no longer driving in one direction

    Time:2021-8-12

    Unlike a single linked list, each node of a two-way linked list contains not only data, but also pointers to its front node and rear node respectively In fact, compared with a single linked list, a double linked list adds a pointer to the previous node Let me write a double linked list to implement […]

  • JWT token online code generation

    Time:2021-8-2

    JWT token online code generation JWT token online code generation The three parts of JWT are as follows Header Payload Signature Header header { “alg”: “HS256”, “typ”: “JWT” } Payload ISS (issuer): issuer Exp (expiration time): expiration time Sub (subject): subject Aud (audience): audience NBF (not before): effective time IAT (issued at): issuing time JTI […]

  • Eight cartoons understand the single sign on system designed by JWT

    Time:2021-7-29

    JSON web token (JWT) is a very lightweight specification. This specification allows us to use JWT to transfer safe and reliable information between users and servers. Let’s imagine a scene. When user a pays attention to user B, the system sends an email to user B with a link “click here to pay attention to […]

  • 11 graphic single sign on system, risbett!

    Time:2021-7-27

    JSON web token (JWT) is a very lightweight specification. This specification allows us to use JWT to transfer safe and reliable information between users and servers. Let’s imagine a scene. When user a pays attention to user B, the system sends an email to user B with a link “click here to pay attention to […]