docker+jenkins+github deployment soringboot project

Preface Using jenkins to associate github to publish spring boot project is very simple. This article introduces the process of publishing with docker. ps: the server of this article is centos7 Install docker yum install docker After installation, you need to set it to start systemctl start docker.service systemctl enable docker.service The ...

Posted by tester2 on Tue, 22 Oct 2019 03:13:00 -0700

Customize the ApiBoot Logging link and cell ID generation strategy

ApiBoot Logging will create a link number (TraceID) and a cell number (SpanID) for each request, which are used to classify each request log. The Parent SpanID of the log unit under a link can be used to sort out the relationship between the superior and the subordinate. Previous review Use ApiBoot Logging for unified management of request lo ...

Posted by spectacell on Mon, 21 Oct 2019 20:54:20 -0700

Solve the problem of null session caused by the front end cross domain access session ID inconsistency caused by the separation of front end and back end projects of vue+springboot.

Problem: the front-end cross domain access to the back-end interface does not carry cookie s by default under the browser's security policy, so each request opens a new session. When we print the sessionID in the background, we will find that the sessionID of each request is different. Since each request is a new session, it is naturally null ...

Posted by robotta1530 on Mon, 21 Oct 2019 09:12:28 -0700

Spring boot 2.0 advanced case (05): integrate swagger 2 and build interface management interface

I. Introduction to Swagger2 1. Advantages of Swagger2 Integrate into Spring Boot to build a powerful RESTful API document. Besides interface document management, code modification and automatic update, swagger 2 also provides powerful page testing function to debug RESTful API. 2. Common notes of Swagger2 Api: decorate the whole class to descri ...

Posted by Tjorriemorrie on Sun, 20 Oct 2019 10:37:08 -0700

[Springboot] Springboot integrated email service (HTML / attachment / template QQ, Netease)

introduce E-mail service is one of the common services with many functions. It can send activities and marketing advertisements to users externally, and send system monitoring reports and alarms internally. This article will introduce how spring boot integrates the mail service and give the configuration of different mail service providers. As ...

Posted by jnewing on Fri, 18 Oct 2019 23:08:39 -0700

Spring Boot: elegant use of the API documentation tool Swagger2

1. introduction You must have been tortured by interface documents in the development process. Due to the lightweight and low coupling of RESTful interface, we did not update the documents in time after modifying the interface, resulting in frequent complaints from the interface callers (both front-end and back-end) about the inconsistency bet ...

Posted by flOid on Wed, 16 Oct 2019 19:48:38 -0700

Using redis under SpringBoot

When our project needs to use cache and high concurrency, we can use redis connection pool, let's go straight to the topic. The project environment of this paper is win 10, springboot 2.1.5.RELEASE, redis Java client jedis 2.9.3, fastjson 1.2.47 (for serialization). This project uses the lombok plug-in, so the set and get methods are replaced b ...

Posted by satanclaus on Wed, 16 Oct 2019 15:44:34 -0700

Spring Boot 2.X: Spring Cache

Introduction to Spring Cache Multi-Cache support is introduced in Spring 3.1. In the spring-context package, two interfaces, org.spring framework.cache.Cache and org.spring framework.cache.CacheManager, are defined to unify different caching technologies. Cache interfaces include common operations of caching: add, delete, read, and so on. Cache ...

Posted by copernic67 on Mon, 14 Oct 2019 20:00:28 -0700

Handler Exception Resolver for Custom Exception Handling in the SpringBook series of tutorials

About the global exception handling of Web applications, the last article introduced the way of Controller Advice combined with @ExceptionHandler to realize the global exception management of Web applications. This blog post brings another unusual way to handle exceptional states by implementing a custom Handler Exception Resolver Links to the ...

Posted by Guffi on Mon, 14 Oct 2019 04:59:41 -0700

SpringBoot is packaged as a war package and runs in tomcat

Let's take a look at the simplest project I've created. controller class @RestController public class TestController { @RequestMapping("index") public String index() { return "hello"; } } The pom file hasn't been modified, so let's start the project directly. Look at the version of embedded tomcat in the startup log. My ...

Posted by robpoe on Sun, 13 Oct 2019 05:41:56 -0700