Maven project configuration Logback outputs JSON format logs

Recently, the project put forward the requirement that the log output be fixed in JSON format for back-end Flink program parsing. Project background The project is a simple Maven project. Logs are collected by Filebeat, so there is no need to configure output to Logstash. Below is the dependency configuration in the pom.xml file, where logstash ...

Posted by loveitandhateit on Thu, 03 Oct 2019 17:23:58 -0700

Java Add Word Text Box

In Word, a text box is a portable, resizable text or graphics container. We can add text, pictures, forms and other objects to the text box. Next, we will add the above objects to the Word text box through Java programming. Use Tools: Free Spire.Doc for Java (Free Edition) Jar file acquisition and import: Method 1: Through Download official ...

Posted by DeepakJ on Thu, 03 Oct 2019 01:24:00 -0700

thymeleaf all kinds of problems, tag useless? Page 404?

First, html pages    <!DOCTYPE html> //Note that this xmlns must be followed by https, and mine is that it does not add s to make it impossible to recognize msg as a variable. <html lang="en" xmlns:th="https://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>Thymeleaf grammar</titl ...

Posted by daredevil88 on Wed, 02 Oct 2019 19:05:58 -0700

springboot is packaged as war and deployed to tomcat container

Step 1: Modify pom.xml to increase <packaging>war</packaging> Step 2: Remove the tomcat component <!-- spring boot web --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <!--Remove Em ...

Posted by duankr on Wed, 02 Oct 2019 09:23:57 -0700

Spring cloud builds gateway through Zuul

In micro services, a unified gateway is usually added to all services. The gateway mainly performs routing forwarding and transverse section functions (such as authentication, log collection, current limiting and counting). Step 1: As a maven project, add the specified package in pom.xml <dependenci ...

Posted by aquarius on Wed, 02 Oct 2019 04:29:37 -0700

Nacos Config Integrated Spring Cloud Usage Instructions

Nacos config provides the solution of configuration center, and its function is very powerful and applicable. It provides the mode of single machine and cluster. Ways of System Integration maven package dependency <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-a ...

Posted by digitalmartyr on Wed, 02 Oct 2019 01:21:29 -0700

Activiti Guidelines (Creating and Setting Maven Projects)

Create and set up Maven projects Create a Java project called "Activity Developer QuickStart" (hereinafter referred to as $quickStart Java Project Name), which contains the following Maven dependencies: Document: $mvnProject/pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta ...

Posted by chamal on Wed, 02 Oct 2019 00:04:38 -0700

The first Spring Security application

Official introduction to Spring Security https://spring.io/projects/spring-security#learn The goal of Spring Security is to solve "Who are you?" "What can you do?" Two questions. Implementation steps 1. Create directory structure |____spring-security-learn-1 | |____build.gradle | |____src | | |____main | | | |____java | | ...

Posted by Hell Toupee on Tue, 01 Oct 2019 23:29:44 -0700

Introduction to Spring MVC

Introduction to Spring MVC: 1. Create a maven project and import dependencies 2. Configure the core controller: 3. Create configuration files for spring MVC (as shown below): 4. Write controllers and use annotations to configure: 5. Test Spring MVC: 1. Create a maven project and import dependenc ...

Posted by DarkShadowWing on Tue, 01 Oct 2019 04:30:25 -0700

Introduction to mybatis: inserting data into database (eclipse version)

Mybatis Knowledge Reserve: I. framework Understanding: framework is actually a semi-finished product of an application, a set of components for you to choose and complete your own system. Simply put, use the stage set up by others to perform. Moreover, frameworks are generally mature, upgraded softwar ...

Posted by Grim... on Mon, 30 Sep 2019 21:05:38 -0700