Using JPA in SpringBoot
In the last article, we used the JdbcTemplate to access the database. After all, we used the native SQL form. I'm sure that lazy people like me ...
Explore the difference between Reflect.apply and Function.prototype.apply
As we all know, ES6 adds a global, built-in, non constructable Reflect object, and provides its next series of interceptable operation methods. One of...
Create a jdbc connection
This paper introduces how to establish a jdbc connection for database query. Create a java project and import the jar package. Using mysql database, t...
Thoroughly understand JavaScript forEach & map
background In JavaScript, we are certainly familiar with array traversal. The most common two are forEach and map. (of course, there are others such a...
[JavaSE] JDBC programming of Java
JDBC creation process Load database driver Create database connection Create operation command Execute SQL statement Process return result set Close ...
How do I avoid deadlocks?
When concurrent programs become deadlocked, we often have to restart the application.The best way to solve the deadlock problem is to avoid it. Condit...
The use of Spring @Async annotation
Premise of use If there is an asynchronous method in the current class a.class and @ Async is used, it must be called by other classes (such as b.clas...
Implementation principle of ArrayList (JDK 1.8)
Implementation principle of ArrayList (JDK 1.8) public class ArrayList<E> extends AbstractList<E> implements List<E>, RandomAccess, ...
The realization of headless bidirectional linked list
1. head insertion public void addFirst(int data) { //Head insertion DLinkedNode newNode = new DLinkedNode(data);//New nodes joined DLinkedNode next =...
spring's Custom Annotation Analysis
Preface spring provides rich annotations, but sometimes does not meet the complex needs of existing businesses. We can refine our business framework b...
ThinkPHP+JQuery for asynchronous file upload
Front-end code <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>ThinkPHP+JQuery...
Several ways to realize multithreading
This blog series is a record summary of learning concurrent programming. Due to the large number of articles and the scattered time of writing, I arra...
The use of Gson serializer
Business scenario: Recently, we are doing a file path encryption. Many classes are designed to file paths. Because the framework used in our project i...
Remember the problems in SpringBoot1. * to Springoot2.0
1. Interceptor problem Write static path pattern in the configuration file after 2.0. / static / * * has no effect (2.0 needs to be configured in the ...
Get the K-th largest element in an array
How to get an array in O(n) such as which has the largest K element? We can use the partition method similar to fast row to limit the K-th largest el...
List collection multiple sorts
Write before: Sometimes we need to sort the data when the query data is displayed on the front page, especially by multiple fields. There are a lot of...
Teach you 10 minutes to build a cool personal blog
Take personal blogs for example, Blog address Preparation install $ npm install -g hexo-cli Initialization $ hexo init <folder> $ cd <folder&...
canvas: writing dynamic clock in native javascript
At this time, the needle is centered on the center of the canvas; g.translate(width/2,width/2); This function moves the origin of the canvas to (widt...
JAVA | Spring + quartz to implement timing tasks
WeChat public number: an excellent wasterIf you have any questions or suggestions, please leave a message in the background. I will try my best to sol...
Experience in the development of vue mobile terminal
Introducing Mint UI on demand Used in this project mint-ui As a basic ui framework, it has encountered many problems in use. The official website doc ...
[JS foundation] Prototype and prototype chain, constructor
5 prototype rules All reference types (array, object, function) have object properties, which can freely extend properties (except "null") A...
Custom parsing of spring boot front and back separate Instant timestamps
In the spring boot project, the front end and the back end specify the transfer time using timestamp (precision ms) @Data public class Incident { @Api...
Video picture -- multi thread download tool
Don't think the network speed is slow? That's because you don't have a good download tool, multi-threaded download, the number of threa...
Notes on setting roles and permissions in spring security
concept In the loadUserByUsername method of UserDetailsService to build the current login user, you can choose two authorization methods, role authori...
Java implementation of XOR algorithm encryption and decryption
Link to this article: https://blog.csdn.net/xietansheng/article/details/88420949 1. xor encryption principle If an integer a and any integer b are ex...
Rich text editor Quill upload pictures and videos
image and video belong to Embeds in Quill formats. To insert pictures or videos into rich text, you need to use insertEmbed api. insertEmbed insertEmb...
java web Implementation forget password (retrieve password) function and code
java web Implementation forget password (retrieve password) function and code java web Implementation forget password (retrieve password) function an...
Storm profile format exception
Storm's configuration file format is prone to errors, which causes Storm to fail to start correctly. The error messages caused by the format are...
After two or more threads finish executing, continue to perform the following steps, CountDownLatch and CyclicBarrier
In the development process, there will be more or less one method that needs to wait for the execution results of two or more threads. How do we deal ...
vue component encapsulation and parent-child component value passing, event handling
In the development of vue, the part with unified function is extracted as an independent component and introduced when it is needed, which can effecti...