When using the date selection component of the element UI, we often encounter errors. For the case of selecting the time when the time expires, minutes and seconds at the date time
TypeError: date.getFullYear is not a function
Reason for the problem: the default type of spatial data is the time Date type. However, what we usuall ...
Posted on Sat, 28 Mar 2020 12:03:36 -0400 by ChrisMartino
When our web application runs independently and does not need the support of the web server, we want to apply the database connection pool. We can use the independent database connection pool scheme. Apache's DBCP is one of them. The configuration steps are as follows:
Step 1: download the necessary three jar packages
Posted on Sat, 28 Mar 2020 11:45:42 -0400 by pdub56
ssh ssm has transaction management service layer configured through applicationContext.xml, and all service methods are added with transaction operations;
It is used to ensure consistency, that is, multiple dao operations in the service method succeed or fail at the same time;
Just make a @ Transactional under springboot
Posted on Sat, 28 Mar 2020 10:51:55 -0400 by bigmichael
Starting from the background of current limiting, this paper introduces the common methods, code implementation and source code analysis of current limiting components. This is the first part of this series. It introduces the background, algorithm and implementation of RateLimiter. The second part introduces the source code implementation of ...
Posted on Sat, 28 Mar 2020 09:59:31 -0400 by Jay_Seagrave
1. Configure iscsi server
Tagetcli is a dedicated configuration command for managing iSCSI server-side storage resources, which provides interactive configuration capabilities similar to fdisk commands.
[root@linuxprobe ~]# targetcli
Warning: Could not load preferences file /root/.targetcli/prefs.bin.
targetcli shell version 2.1.fb34
Posted on Sat, 28 Mar 2020 01:01:31 -0400 by crazykid
1. MyBatis should not write 1 = 1 for multiple query conditions
When we encounter multiple query conditions, where 1=1 can be a convenient solution to our problem, but it is likely to cause a very large performance loss because after adding a filter condition of where 1=1, the database system will not be able to use query optimization strategie ...
Posted on Fri, 27 Mar 2020 23:57:07 -0400 by whoisKeel
In mysql, utf8 and utf8mb4 are commonly used character sets. The two character sets are similar. Utf8 is an alias of utf8mb3, so later mentioned in MySQL that utf8 means using 1-3 bytes to represent a character. If you use 4 bytes to encode a character, such as storing some emoji expressions, you need to use utf8mb4. In fact, each cha ...
Posted on Fri, 27 Mar 2020 14:05:15 -0400 by Il-Belti
There are two situations: one is that the XMIN transaction has not been committed, the other is that the xmin transaction has been committed.For transactions not committed by xmin, that is, the current tuple just insert has not yet been committed:1) If the tuple is illegal, that is to say, the bad tuple returns header2) The tuple is generated ...
Posted on Fri, 27 Mar 2020 13:48:28 -0400 by raptoni
First level cache
Two level cache
First level cache
mybatis includes a very powerful query caching feature that can be easily configured and customized. Many improvements to the cache implementation in MyBatis 3 have been implemented, making it more powerful and easy to configure. By default, mybatis will only enable the ...
Posted on Fri, 27 Mar 2020 12:27:39 -0400 by gloeilamp
1. Install pymysql Library
If you want to use python to operate MySQL database, you must first install the pymysql library. The installation of this library is very simple. Use pip install pymysql; directly for installation.If above this kind of way still does not install, use the following link to find a suitable installation package to instal ...
Posted on Fri, 27 Mar 2020 08:13:51 -0400 by skicrud