Spring boot introduces external jar s and packages the project through maven, unable to start
Road to crater
Preface
Introducing jar
Preface
First of all, you must print the error log in your project (I use log4j), so that you can see what causes the startup error.
Introducing jar
How to import local jar package
1. Create a new lib folder under resources and put the jar package file in this directory
2. In the ...
Posted by pumaf1 on Thu, 21 Nov 2019 11:14:30 -0800
Java add hyperlink in PDF
After adding hyperlinks to specific elements, users can activate these links by clicking on the linked elements, which are usually underlined or displayed in different colors. According to the different objects used, links can be divided into text hyperlinks, image hyperlinks, E-mail links, anchor links, multimedia file links, empty links and ...
Posted by cloudzilla on Thu, 21 Nov 2019 10:16:22 -0800
Zuul of spring cloud: service gateway
The use of Zuul in Web projects is shown above< Using Zuul in SpringBoot >, the following example is Zuul's use in Spring Cloud.
Development tool: IntelliJ idea February 3, 2019
I. server side
1. Create project
Create a new spring boot project named "zuul Eureka server" in IDEA, select 2.1.10 for spring boot version, and che ...
Posted by D_tunisia on Wed, 20 Nov 2019 06:58:16 -0800
Common encryption methods in java
First, import the jar package, commons-codec.jar. You can use maven or go to the maven official website to download the jar
https://mvnrepository.com/artifact/commons-codec/commons-codec/1.12
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version ...
Posted by candy2126 on Tue, 19 Nov 2019 09:54:28 -0800
1. Single machine of eureka Registration Center
Public address: java paradiseSource code: https://gitee.com/hjj520/spring-cloud-2.x
I. IntroductionSpring Cloud Eureka is a service governance module under the Spring Cloud Netflix project. The Spring Cloud Netflix project is one of the subprojects of Spring Cloud. Its main content is the packaging of a series of open source products of Netfli ...
Posted by mgmoses on Tue, 19 Nov 2019 07:55:13 -0800
SpringBoot 2.x: manual project creation and automatic project creation
SpringBoot 2.x based on Spring Framework 5.x
The environmental requirements are as follows:
JDK1.8 or above
Maven 3.2 or above
I use Eclipse here. IDEA is a powerful tool, but I'm not used to it
To create a SpringBoot project manually:
Premise: the computer has Maven and JDK installed and configured in Eclipse
Open eclipse - > New ...
Posted by thefisherman on Mon, 18 Nov 2019 11:52:09 -0800
Installation and use of Gradle
Official website: Gradle installation tutorial portal
I. installation
The installation process of windows and linux is basically the same
1 download the binary Gradle package
2 decompress the package
3 configure the following environment variables according to the compressed package path:
Gradle home configures the installation directory of gr ...
Posted by richcrack on Mon, 18 Nov 2019 06:36:12 -0800
Spring boot unified exception handling
Code structure
Configure pom file
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVers ...
Posted by fodder on Sun, 17 Nov 2019 10:47:34 -0800
JavaFX Basics: 5: respond with ActionEvent
The previous articles introduced the basic knowledge of JavaFX, and also mentioned that JavaFX can develop client desktop applications. This article added two buttons to the above simple functions, which can display and hide new window s according to the buttons.
Code structure
liumiaocn:JavaFXButton liumiao$ ls
pom.xml src
li ...
Posted by danoli on Sun, 17 Nov 2019 10:07:19 -0800
shiro four encryption realm login and logout
shiro encryption operation
Hash algorithm is generally used to generate summary information of data. It is an irreversible algorithm, which is generally suitable for storing data such as passwords, and common hash legal persons such as MD5 and SHA. In general, it is better to provide a salt for hash algorithm, such as encrypte ...
Posted by isuckat_php on Sat, 16 Nov 2019 14:12:58 -0800