Write Spring Boot Starter from scratch
Spring Boot provides convenience for developers.
This article describes how to write Starter so that developers can reuse their own or project group's code.
Code download address: https://gitee.com/jxd134/Spring-Boot-Greeter-Starter.git
1 new project
The project is built on Maven and consists of the following three modules:
Greeter Library: ...
Added by ace_lovegrove on Tue, 17 Mar 2020 17:41:45 +0200
Construction of microservice parent project
1. Steps of building parent project based on IDEA
New maven project
2. Name of aggregation parent project
Maven selected version
Character encoding settings
Annotation effective activation
Java version selection 8
File Type filtering
2.pom file description
1.pom Document conten ...
Added by pha3dr0n on Sat, 14 Mar 2020 16:44:16 +0200
Notes on learning Spring source code -- it is not difficult to download and compile Spring source code
Prerequisite preparation:
JDK8+
IDEA
Maven
Download the source code:
Visit the official website of spring.io, then go to Projects, click the kitten in the upper right corner, and download the Spring source code from Github!
Choose a RELEASE version, I choose the RELEASE version of 5.2, choose ...
Added by maniac1aw on Sat, 14 Mar 2020 03:43:45 +0200
Beginners springboot integrated mqtt instance
Recently, we developed a kind of Internet of things related equipment, contacted with mqtt protocol, and found a lot of information on the Internet, but it is basically "half covered with Pipa", and there are always some missing contents. It may be that the authors don't think it's necessary t ...
Added by TheTitans on Thu, 05 Mar 2020 08:19:18 +0200
MyBatis entry instance (select)
Development environment: Idea2018
Database: mysql 8.0.16
Purpose: to learn Mybatis
Database preparation
This instance uses mysql 8.0.16, user name root and password 123456
To create a database and create a test form:
/*Create database*/
CREATE DATABASE tms default character set utf8;
/*Create data ...
Added by skope on Sat, 29 Feb 2020 06:12:48 +0200
Learn spring cloud Eureka to take you from 0 to 1
1, What is a service registry
Service registry is the core component of service registration and management, which is similar to directory service. It is mainly used to store service information, such as service provider url string, routing information, etc. Service registry is one of the most basic f ...
Added by barbs75 on Mon, 24 Feb 2020 15:58:18 +0200
Compile the Flink 1.9.0 report, Flink FS Hadoop shaded cannot be found
Compile the Flink 1.9.0 report, Flink FS Hadoop shaded cannot be found
1.Flink source code download
git clone git@github.com:apache/flink.git
Then you can switch to different branches of the project and execute the following command to switch the code to release-1.9 branch:
git checkout release-1.9 ...
Added by Sekka on Sat, 22 Feb 2020 16:58:52 +0200
Common Java database operations
1. JDBC Driver
JDBC-driven loading:
1. Loading through containers:
For Java applications with containers, the corresponding driver jar packages can be placed directly in the lib directory of the container, such as web applications using Tomcat as a container, and the driver can be copied to the lib subdirectory of tomcat.
2. Application Runtim ...
Added by Exoon on Mon, 17 Feb 2020 01:22:41 +0200
Java Web error analysis and solution
1. Problem description
When we use IDEA to create a Java Web project of Spring Boot, there will be an error that the package cannot be imported. For example, we create a Spring Boot basic project from the Spring official website, and then open it in the local IDEA to find the error.Open pom.xm file an ...
Added by sasori on Sun, 16 Feb 2020 07:40:56 +0200
Add, replace and delete pictures in PDF in Java
Summary
This article introduces how to add pictures to PDF documents through java program, and how to replace and delete the existing pictures in PDF. In addition, for the operation of pictures, please refer to the settings PDF picture background , set up PDF image watermark,Read pictures in PDF , will PDF save as picture And so on.
Tools: free ...
Added by r3drain on Fri, 14 Feb 2020 17:39:48 +0200