In Spring ThreadPoolTaskExecutor Is a JavaBean that provides a surround java.util.concurrent.ThreadPoolExecutor And as an abstract instance in Spring org.springframework.core.task.TaskExecutor Exposed. In addition, it can be highly configured with properties of corePoolSize, maxPoolSize, queueCapacity, allowCoreThreadTimeOut, and ke ...
Posted on Sun, 29 Mar 2020 21:46:36 -0400 by kidsleep
I don't think I write well, so I post a good post first
I don't need to come back after reading it....
This is a blog written by a big guy: https://www.cnblogs.com/yixianyixian/p/8372832.html
First, Java EE system is developed in layers. Transaction processing is located in the business layer. Spring provides a transaction processing soluti ...
Posted on Sun, 29 Mar 2020 13:51:37 -0400 by jrtaylor
[Ali big fish]
In our development, the function of sending and receiving SMS to the mobile phone for verification is very widely used in our daily life, especially when we want to have our own account in a website, an app, a blog network, then we have to register and log in, SMS is essential, even if you forget the password, a SMS back and for ...
Posted on Sun, 29 Mar 2020 13:26:50 -0400 by amob005
According to the demand, the files displayed in the app need to be shared and opened and viewed with the related software installed on the mobile phone, so the function of "other applications open files" is used for users to consult in different ways.
Here, we go directly to the code:
Step 1: the first step is to vi ...
Posted on Sun, 29 Mar 2020 13:21:09 -0400 by grim1208
Looking for a lot of information, seven, eight, eight have tried again, and finally wrote out this function.
A rookie. This article is only for notes.
A simple generation of QR code, through the web page to confirm the login, to achieve the QR code page to jump to the main page.
There are three servlet s:
CodeServlet.java does two things
A: gen ...
Posted on Sun, 29 Mar 2020 12:37:16 -0400 by welshmike
Original link: http://www.yiidian.com/mybatis/mybatis-dao.html
In MyBatis, we have two ways to write Dao, one is called traditional Dao and the other is Mapper proxy interface. Let's see how to implement it.
1. Traditional Dao writing
1.1 write CustomerDao interface
import java.util.L ...
Posted on Sun, 29 Mar 2020 10:17:00 -0400 by jcbones
1. Using Redis user login analysis
2. Use tool class to generate verification code
Store randomly generated verification code in redis
Use for loop to generate randomly, and use StringBuilder to save 4 strings
Use HttpServletResponse to respond pictures to the browser
import org.springf ...
Posted on Sun, 29 Mar 2020 10:11:51 -0400 by gregambrose
Dubbo SPI series
On Java SPI
How to use Dubbo SPI (I) - automatic packaging of extension points
Dubbo SPI using method (2) - extended point adaption
Dubbo SPI usage (3) - automatic assembly of extension points
Dubbo source code analysis - Application of Dubbo SPI in Protocol layer
Dubbo source code analysis - Dubbo SPI obtains extension poin ...
Posted on Sun, 29 Mar 2020 02:15:21 -0400 by jfs0479
Reason for repeated submission
The jump from the submitted page to the successful page generally uses the view location. Because the view location jumps at the server, if the user refreshes the page again after clicking submit, it will result in repeated submission, and the data in the database will be repeated.
Adopt token measures
1. Generate ...
Posted on Sat, 28 Mar 2020 13:30:12 -0400 by benjaminbeazy
Because recent projects need to have check function, but too many check boxes will affect the layout and beauty of the interface, so we want to combine the drop-down list and check box of PyQt5, but there is no such component for us to use in PyQt5, so we want to implement a drop-down check box ourselves, mainly inheriting the QCombo ...
Posted on Sat, 28 Mar 2020 13:14:19 -0400 by MrCreeky