Spring boot 2.0 integrates jackson configuration date formatting and deserialization
There are many different opinions on the Internet. Most of them are copied back and forth. There is no practice. Recently, in the project, we frequently encountered the problem of boot+jackson processing date, so we opened this post.
The first is POM.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/PO ...
Posted by UseeHere on Sun, 08 Dec 2019 06:36:09 +0100
Java operation RabbitMQ add queue, consume queue and three switches
I. send message to queue (producer)
Create a new maven project and add the following dependencies to the pom.xml file
<dependencies>
<dependency>
<groupId>com.rabbitmq</groupId>
<artifactId>amqp-client</artifactId>
<version>3.6.5</version>
</dependency>
</ ...
Posted by Fabrizzio PHP on Fri, 06 Dec 2019 12:45:32 +0100
Java Web generates Word document (freemarker mode)
First, add the following dependency to the pom file (if not the Maven project, just import the jar package into the project)
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>2.3.23</version>
</dependency>
1. Create a word document with ...
Posted by ptbsG_Man on Fri, 06 Dec 2019 09:36:59 +0100
Getting started with the cursor tutorial
Curator It is an open-source Zookeeper client of Netflix. Compared with the native client provided by Zookeeper, the cursor has a higher level of abstraction and simplifies the programming of Zookeeper client.
Maven dependence
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</arti ...
Posted by bdmovies on Wed, 04 Dec 2019 10:45:02 +0100
Solve the problem that maven cannot download the dependent jar package
Background:
There is a maven private server built in the company, and a core jar package has been made. At the beginning, it was XXX core.1.0.0.snapshot version, which can be used normally in both local and project environments. In order to support the launch and release a stable version, XXX core.1.0.0.jar.
The local compilation is normal, t ...
Posted by bluedot on Mon, 02 Dec 2019 18:42:27 +0100
Using process record of Gradle plug-in
The process of compiling and packaging based on Gradle in Android is as follows: how to develop the Gradle plug-in:
First, a new module named buildSrc is created in the project. Please see why it is called Official documents . Then delete the Java folder and res folder, and create a new groovy folder and resource folder:
Create a new package ...
Posted by shank888 on Sun, 01 Dec 2019 19:33:24 +0100
javadoc generated by maven
1. Disorderly code
2 custom label
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>${maven_javadoc_version}</version> <configuration> <aggregate>true</aggregate> <tags> & ...
Posted by void_function on Tue, 26 Nov 2019 21:35:05 +0100
The use of JSON string by alibaba fastjson
Fastjson source address: https://github.com/alibaba/fastjson
Fastjson Chinese Wiki: https://github.com/alibaba/fastjson/wiki/Quick-Start-CN
I. introduce dependency
1) FastJson is a toolkit for java background processing json format data
2) FastJson mainly uses the following three classes for parsing json format strings ...
Posted by howler on Tue, 26 Nov 2019 17:53:54 +0100
maven creates spring boot project
There are several ways to create a spring boot project with maven. Using spring boot starter parent and spring boot dependencies, you can also use two ways to create a spring cloud project. It is recommended to use dependency management and use IDEA to create a spring boot project directly!
I. using spring boot starter parent
<! ...
Posted by outpost on Mon, 25 Nov 2019 21:39:30 +0100
Based on Maven, control spring boot configuration file gracefully
background
As we all know, in the process of software development, we usually have production environment, development environment, test environment and so on. For these environments, we need to set different values for the same parameters in the configuration file. Then, how to switch simply, elegantly and quickly?
Solution
I. use the Pro ...
Posted by yujikaido on Sun, 24 Nov 2019 22:46:19 +0100