Don't let your microservice run naked anymore. Based on Spring Session & Spring Security microservice permission control

Microservice architecture Gateway: route the user's request to the specified service and forward the Session information contained in the front-end Cookie; User service: user login Authentication, user authorization, and Redis Session Management Other services: rely on user information in Redis for interface request verification Structure d ...

Posted by spudly on Tue, 29 Oct 2019 17:18:57 +0100

Notes on Python operation of MySQL

Python&MySQL Catalog Python&MySQL Introduction 1.1 database classification Two MySQL 2.1 grammar Overview of 2.1.1 2.1.2 add data 2.1.3 delete data 2.1.4 change data 2.2 MySQL DB module 2.2.1 connecting to the database 2.2.2 close database 2.2.3 query data 2.2.4 add data Three ORM 3. ...

Posted by jasonc310771 on Fri, 25 Oct 2019 14:24:31 +0200

1. pytest -- installation and getting started

Article directory 1. installation 2. Create your first test case 3. Execute multiple test cases 4. Trigger an assertion of the specified exception 5. Organize multiple test cases in a class 6. Apply for a unique temporary directory pytest is a framework that can simplify the construction of test sy ...

Posted by Fergusfer on Fri, 25 Oct 2019 03:40:24 +0200

6. pytest -- temporary directory and file

Catalog 1. Relevant fixture s 1.1. tmp_path 1.2. tmp_path_factory 1.3. tmpdir 1.4. tmpdir_factory 1.5. difference 2. Default basic temporary directory 1. Relevant fixture s 1.1. tmp_path TMP path is a use case level fixture that returns a unique temporary directo ...

Posted by laurajohn89 on Thu, 24 Oct 2019 11:14:21 +0200

What is the Facade in TP

What is the Facade in TP? At present, it is a class that is used to facilitate the static way to call the corresponding method to implement the original class (undefined static method).The specific implementation of Facade is as follows:First look at the core document:\thinkphp\base.php`//Register static proxy of core classFacade::bind([ facade ...

Posted by Daggeth on Thu, 24 Oct 2019 06:24:16 +0200

Many to one one one-way association mapping of hibernate in java

1. I learned crud operation of single table before. In practical applications, most of them are multi table Association operations. This article will learn how to deal with the relationship between multi tables. 2. Investigate the relationship between book list and book classification table. There is a many to one relationship between the book ...

Posted by nuying117 on Wed, 23 Oct 2019 18:03:28 +0200

Django JsonResponse does not automatically set cookie s

[background] At present, we are doing a web project with front-end and back-end separation. The back-end uses django framework, and all API s only return json. In this process, we encounter a problem that all json response django will not actively set the cookies of response object, which further makes the cookie value of csrftoken never appea ...

Posted by ankur0101 on Tue, 22 Oct 2019 17:21:54 +0200

HttpTrace of spring boot admin shows input and output participation monitoring Redisson

Spring Boot admin (hereinafter referred to as SBA) integrates with Spring Boot and Spring cloud projects automatically in the way of starter, including Server side and Client side SBA monitoring includes application basic information, logfile (online real-time browsing or download), JVM information (thread information, heap information, non he ...

Posted by NargsBrood on Sun, 20 Oct 2019 11:12:51 +0200

Interpretation of new features | MySQL 8.0.18 replication with permission control

Original: Replication with restricted privileges https://mysqlhighavailability.com/replication-with-restricted-privileges/ By Pedro Figueiredo Guan Changlong background Before MySQL 8.0.18, the slave server performed replication transactions without checking permissions, so that the master server could get all the content. In fact, this mea ...

Posted by Tsukasa on Fri, 18 Oct 2019 11:12:07 +0200

Spring Boot 2 series of tutorials Spring Boot integrates Freemarker

Let's talk about Spring Boot integration Freemarker today. About Freemarker This is a quite old and open source free template engine. With Freemarker template, we can render data into HTML web pages, e-mails, configuration files, source code, etc. Freemarker is not for end users, but a Java class library, which we can embed into our products as ...

Posted by lszanto on Wed, 16 Oct 2019 05:06:14 +0200