Shiro -- session management

session management Shiro provides a complete enterprise level session management function, independent of the underlying container (such as web container tomcat), which can be used in both Java Se and Java EE environments. It provides session management, session event monitoring, session storage / persistence, container independent clustering, ...

Posted by genics on Sat, 07 Mar 2020 00:46:52 -0800

Nacos enhances the internationalization of SpringBoot

1, Overview Before reading this article, you should understand the internationalization implementation and principle of SpringBoot. Here is a brief introduction: 1. internationalization Internationalization, also known as i18n (named because the word has 18 English letters from i to n). For some a ...

Posted by throx on Thu, 05 Mar 2020 19:32:04 -0800

Source code analysis of UsernamePasswordAuthenticationFilter

This is the construction method of UsernamePasswordAuthenticationFilter and the main content of the attemptAuthentication method is in attemptAuthentication public UsernamePasswordAuthenticationFilter() { super(new AntPathRequestMatcher("/login", "POST")); } public Authentication attemptAuthent ...

Posted by joshmmo on Thu, 05 Mar 2020 02:27:56 -0800

The default isolation level of MySQL InnoDB is Repeatable read. Why can we solve the problem of unreal reading?

1, There are four levels of isolation for MySQL InnoDB transactions, and the default is REPEATABLE READ. READ UNCOMMITTED. Another transaction modifies the data but has not yet committed, and the SELECT in this transaction will read the uncommitted data (dirty read). READ COMMITTED. This transaction ...

Posted by deived on Tue, 03 Mar 2020 00:12:20 -0800

Inception V3 migration training

1: Prepare picture data, a training data, a test data. The structure is as follows: Download the retrain.py program (https://github.com/tensorflow/hub). In the image train under the example folder, if the retrain.py program downloaded from the above link reports an error that cannot be connected during ...

Posted by Taneya on Mon, 02 Mar 2020 22:16:46 -0800

Dynamic filling data into HTML page through js

Under normal circumstances, it's more convenient to complete the function in JSP page. Compared with JSP page, it's more convenient to use, and there will be special circumstances. HTML page is needed to display the data, and the data needs to be acquired and displayed dynamically, so js method is us ...

Posted by nashyboy on Mon, 02 Mar 2020 21:48:54 -0800

Brief Analysis of Springboot--Container Refresh Process

First, learn about the various post processor extensions (1) BeanFactoryPostProcessor - bean factory post-processing Once the BeanFactory standard has been initialized (all BeanDefinition s have been registered after package scanning), this BeanFactory can be postprocessed. (2) BeanDefinitionRegistryPostProcessor - bean Definition Registry Post ...

Posted by SemiApocalyptic on Sun, 01 Mar 2020 10:54:34 -0800

Storing one to many object relationships using Hibernate

There are often relationships between objects in life, such as one-to-one, one to many, many to many. For example, there are many students in a Course class who are one to many. In the database, you can add a foreign key to the Student table to point to the class id to indicate that the Student conta ...

Posted by monkuar on Thu, 27 Feb 2020 03:24:00 -0800

Using Unity to control Canon SLR photographing and data acquisition

Canon SLRs are commonly used in the market. Whether other SLRs are also provided with SDK s has not been searched. Canon SLR generally uses EOS500D, 550D, 600D, 650D and 750D, which are supported by EDSDK. As of the beginning of 2019, Canon's official EDSDK needs to be applied on the official web ...

Posted by bw on Wed, 26 Feb 2020 23:05:53 -0800

Scope, scope proxy and corresponding examples of spring beans

Scope of bean The annotation Scope of spring Component has several common scenarios, such as singleton, prototype, request, session and global session. This annotation can be used with @ Component and @ Bean. In particular, Scope annotation can be divided into ConfigurableBeanFactory and WebApplicatio ...

Posted by olsrey on Tue, 25 Feb 2020 22:50:08 -0800