The difference between int and int(11) in Mysql

[1] The difference between int(3) and int(11) (cognitive error of thinking inertia) Here, 3 or 11 represents the specific length stored in the database, always thinking that int(3) can only store 3 numbers of length, and int(11) can only store 11 numbers of length. [2] Mysql Basics When learning M ...

Posted by mmorton on Fri, 26 Jun 2020 03:45:53 +0200

The simplest Spring Security tutorial in history: successful login to SuccessHandler advanced usage

  So that is what it is. We are lucky to know how to configure the page that is successfully logon after the login and how to specify the system to jump to an address. Yes, it's so simple. The Spring Security framework helps us do most of the work, but we can use it with a little configuration. How ...

Posted by JUMC_Webmaster on Thu, 25 Jun 2020 13:09:20 +0200

Spring Boot: integrate basic operations of JPA and MyBatis

PostgreSQL is an object relational database management system (ORDBMS) of free software with complete characteristics. It is an object relational database management system based on POSTGRES, version 4.2 developed by the computer department of the University of California. Many of the leading concepts ...

Posted by buducom on Thu, 25 Jun 2020 10:26:30 +0200

Redis Basic Application Demo

Article catalog 1, Redis common command operations 1. String type 2. Hash type 3. List type list 4. Unordered set 5. Ordered sort 2, Distributed shared session 3, Remote login reminder offline 4, Register SMS verification code 1, Redis common command operations 1. String type Assignment comm ...

Posted by sosha on Thu, 25 Jun 2020 09:51:27 +0200

java multithreaded Callable -- segment a large list and merge the results

Code reference http://bbs.csdn.net/topics/391070227?page=1     Here is the posted Code: public void dealListWithMutiThread(){ List<Object> list = new ArrayList<Object>(10000); int index = 0; ExecutorService ex = Executors.newFixedThreadPool(5); int dealSize = 2000; List&l ...

Posted by l9pt5 on Wed, 24 Jun 2020 07:20:34 +0200

Custom content provider

Custom content provider 1, What is content provider 2, Content provider role 1. Content provider 2. Content resolver 3, Custom content provider 1. Custom content provider Step: (1) Custom class inherits ContentProvider and rewrites its methods (2) Manifest file registration content provider 2. ...

Posted by ericm on Wed, 24 Jun 2020 04:25:53 +0200

Data collection of provinces in 2020

preface: Reference article: https://www.cnblogs.com/yangzhilong/p/3530700.html https://www.cnblogs.com/liushaofeng89/p/4873086.html Recently, due to the user's feedback that the provincial data form is partially missing, baidu decided to pull it by itself after a circle of duniang. The provincial ...

Posted by Xeon on Tue, 23 Jun 2020 12:58:13 +0200

Use decorator to decorate the class method and call the class method in the decorator.

Decorator methods outside the class decorate class methods and call other methods of the class Scenario: a class that links to a database often disconnects when performing database operations. At this time, you need to call the class's connect database method to re link to the database class My_dbclient(): def __init__(self): self.t ...

Posted by bschwarz on Tue, 23 Jun 2020 12:36:23 +0200

magical! The new objects can also be managed by the Spring container!

It's reasonable to say that the objects from new have nothing to do with containers, but in the Spring Security framework, there are many new objects that can also be managed by containers, so how does it do it? Today, I'd like to talk with you about a little cold topic. What is the use of ObjectPostProcessor in Spring Security? This is the 32n ...

Posted by Dynamis on Tue, 23 Jun 2020 06:35:34 +0200

MySQL uses LOAD DATA to synchronize data to Alibaba cloud database regularly

Before  , there was a small test project that needed to synchronize some local data to Alibaba cloud database regularly. It was implemented by executing LOAD DATA with the most mechanical script. Here is a brief introduction. LOAD DATA can quickly read text file data into the table (LOAD DATA is us ...

Posted by sarun on Tue, 23 Jun 2020 04:31:16 +0200