OAuth2.0-based token senseless refresh

The vue project at hand now has a requirement for permissions, but the architect asked me to do it very early, but because the urgency is not very high, I was reminded of the project coming online recently, so I rushed to make up for it.This project is based on OAuth2.0 authentication and requires that access_token be carried over the head of e ...

Posted by thompsonsco on Wed, 15 Apr 2020 04:08:54 +0200

Open Swoole without three party package for Laravel

Swoole It is an excellent PHP extension, which can realize the resident service and asynchrony that native PHP is difficult to achieve. Just in time, I had a project on Laravel that I could toss about, so I studied it. Laravel project is based on composer, so I post the require declaration in my composer.json:   { "require": { "ph ...

Posted by SsirhC on Mon, 13 Apr 2020 10:47:38 +0200

Nginx series tutorials nginx Solving session consistency

session viscosity Each request is allocated according to the hash result of the access ip, so that each visitor accesses a back-end server, which can solve the session problem. upstream backserver { ip_hash; server 192.168.0.14:88; server 192.168.0.15:80; } But there are disadvantages. There is a single risk. If I have logged in on port 192.1 ...

Posted by djelica on Sun, 12 Apr 2020 03:53:23 +0200

Spring Boot Integrates Thymeleaf View Layer

Catalog Spring Boot Integration ThymeleafProject steps for integrating Thymeleaf with Spring Boot Thymeleaf syntax details Spring Boot Integration Thymeleaf Spring Boot integrates Thymeleaf (the official view layer technology recommended by Spring Boot) Thymeleaf feature: Thymeleaf renders html tags through specific syntax. Project steps ...

Posted by Stephen68 on Tue, 07 Apr 2020 20:54:18 +0200

[Seata microservice distributed transaction] 1. Seata server environment construction

Seata serve installation package Download the Seata Server package, all I have is version 0.9.0 https://github.com/seata/seata/releases wget https://github.com/seata/seata/releases/download/v0.9.0/seata-server-0.9.0.tar.gz Link: https://pan.baidu.com/s/1jlBwCEYM3hn7zQiSpwRijg password: 56vm After 0.9.0 of the official website, there is no ...

Posted by davespring on Mon, 06 Apr 2020 02:29:27 +0200

get and load queries in Hibernate Framework

Original link: http://www.yiidian.com/hibernate/hibernate-get-load.html 1. Demonstrate the basic use of get and load methods /** * Show basic object query * @author http://www.yiidian.com * */ public class Demo { /** * get()Method: query an object */ @Test public void test1(){ Session session = HibernateUtil.getSession(); Transa ...

Posted by NZ_Kiwis on Sun, 05 Apr 2020 22:37:01 +0200

postgresql session function (2)

Session information function (2) Current "catalog and current" database () both return the name of the currently connected database. testdb=# select current_database(); current_database ------------------ testdb (1 Row record) testdb=# select current_catalog; current_database ------------------ testd ...

Posted by sanfly on Sun, 05 Apr 2020 15:44:16 +0200

Use HashMap to simulate a Session cache (simple version)

This article records the characteristics of the first level cache in Hibernate. Details of L1 cache: what operations will be directed to 1. Level cache put data save,update,saveOrUpdate,load,get,list,iterate,lock 2. What operation will fetch data from the first level cache.get / load / list get / load will first get from the first level cache. ...

Posted by bluestar on Sat, 04 Apr 2020 15:28:27 +0200

Introduction to TensorFlow (1) correction of some small mistakes

Recently, in-depth learning, I borrowed the TensorFlow practical Google in-depth learning framework from the library and looked at it curtly. Recently, Bi set needs to find a PDF version on the Internet and chew it carefully. I found that there are some errors in the code of this book, which need to be slightly modified. Otherwise, ...

Posted by deveed on Fri, 03 Apr 2020 22:09:01 +0200

Simple implementation of listener in java web

Today, I relearned the basic listener technology of java web, and used sessionListener to simply count the number of people online (one bug is that when the web page is closed, the session will not be closed and still exists, unless the server is closed). The code is as follows (the front-end web page code will not be displayed): LoginServlet.j ...

Posted by lukegw on Thu, 02 Apr 2020 16:08:24 +0200