Java. Page 27

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 ...
19:49 7 December 2019

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...
12:51 7 December 2019

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...
2:08 7 December 2019

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...
21:18 6 December 2019

[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 ...
13:23 6 December 2019

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...
2:56 6 December 2019

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...
18:45 4 December 2019

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, ...
17:22 4 December 2019

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 =...
17:14 4 December 2019

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...
17:01 4 December 2019

ThinkPHP+JQuery for asynchronous file upload

Front-end code <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>ThinkPHP+JQuery...
15:09 4 December 2019

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...
14:28 4 December 2019

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...
13:22 4 December 2019

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 ...
12:35 4 December 2019

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...
11:45 4 December 2019

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...
8:56 4 December 2019

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&...
8:47 4 December 2019

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...
8:47 4 December 2019

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...
6:53 4 December 2019

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 ...
6:12 4 December 2019

[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...
6:06 4 December 2019

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...
5:37 4 December 2019

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...
4:57 4 December 2019

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...
4:27 4 December 2019

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...
3:36 4 December 2019

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...
3:35 4 December 2019

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...
2:36 4 December 2019

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...
2:30 4 December 2019

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 ...
1:46 4 December 2019

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...
1:45 4 December 2019