How to compile and build Spring Framework 5.x in Idea

How to compile and build Spring Framework 5.x in Idea Install and configure gradle (omitted) Download source code: git clone https://github.com/spring-projects/spring-framework.git Follow the prompts of import-into-idea.md file under the project The following has been tested against IntelliJ IDEA 2016.2.2 ## Steps _Within your locally clone ...

Posted on Sun, 03 Nov 2019 08:00:33 -0500 by westmich

Java add page jump button in PDF

In PDF, you can use buttons to add actions to jump to the specified page, including jump to the first page of the document, the last page of the document, jump to the previous page, the next page, or jump to the specified page. The following will show how to add buttons with the above functions through java code. Use tools: Free flame.pdf fo ...

Posted on Fri, 01 Nov 2019 22:23:28 -0400 by ShugNorris

Tymeleaf common syntax: data delay loading

When processing a template, it is up to the template logic to decide whether to load the data to improve performance.When setting data in the Spring Boot controller, you can use LazyContextVariable to do this. Development environment: IntelliJ idea February 2, 2019Spring Boot version: 2.1.8 Create a new Spring Boot project named demo. 1,pom. ...

Posted on Fri, 18 Oct 2019 14:29:25 -0400 by acidHL

Common syntax of Thymeleaf: conditional judgment if, switch case

if statementConditional judgment uses th:if, which determines whether the expression is valid. The result of the expression supports boolean, number, character, String and other types.The if statement is true if:(1) the result of the expression is a number and not 0(2) the result of the expression is a string and not false, off, no, 0(3) the re ...

Posted on Thu, 17 Oct 2019 16:56:47 -0400 by jamesdk

Common Annotations for Spring

Spring framework mainly includes IoC and AOP, which can be configured with annotations. Development environment: IntelliJ IDEA 2019.2.2Spring Boot version: 2.1.8Create a new Spring Book project named demo. I. bean Definition In Spring, the objects that constitute the backbone of the application and are managed by the Spring IoC container are ...

Posted on Fri, 27 Sep 2019 11:43:16 -0400 by jrws

Spring Boot 2 Unit Test

Development environment: IntelliJ IDEA 2019.2.2Spring Boot version: 2.1.8 After IDEA creates a new Spring Book project, pom.xml defaults to include two dependency packages: Web application and unit testing.As follows: <dependencies> <dependency> <groupId>org.springframework.boot</groupId> ...

Posted on Thu, 19 Sep 2019 11:46:04 -0400 by pcjeffmac

JMH - Java Microbenchmarking Tool

Preface "If you cannot measure it, you cannot improve it". In daily development, there are many options for calling some code or using tools. When we are uncertain about their performance, the first thing we want to do is to measure it. Most of the time, we will simply use multiple counts to measure the total time-consuming of this method. How ...

Posted on Fri, 06 Sep 2019 07:06:15 -0400 by jovankau

Data Structure Learning - Heaps

Original Link: http://www.cnblogs.com/quincy-qiu/p/4014343.html 1 Basic Introduction A heap data structure is an array object that can be viewed as a complete binary tree.Heap access can be done through three functions: parent(i) ...

Posted on Wed, 17 Jul 2019 12:06:49 -0400 by sprocket

ActiveMQ (1) Initial contact - writing Demo

Declarations Reprint please indicate the source! http://www.hiknowledge.top/?p=86&preview=true What is JMS JMS, the Java Message Service application interface, is a Java platform API for message-oriented middleware (MOM), which is used to send messages between two applications or in distributed systems for asynchronous communication.Java m ...

Posted on Sat, 13 Jul 2019 12:39:00 -0400 by romzer

Creating Maven Web Project with intellij idea

The demo used in the previous two articles is to create a java web project directly above the idea. It is troublesome to import the jar package every time. So why do we go online one by one to find jar packages when we have such a useful component library as maven? This article talks about how to use intellij idea to create a Maven Web project ...

Posted on Sat, 29 Jun 2019 13:48:14 -0400 by ChaosDream