[elegant code writing system] springboot+mybatis+pagehelper+mybatisplus+druid shows you how to write code gracefully

[TOC] Springboot integrates a lot of plug-ins. Compared with spring, springboot is a little bit Auto configuration: for many spring applications, springboot provides many auto configurations Start dependency: tell springboot what you need, and it will introduce the required Library Command line interface: optional features of springboot Autu ...

Posted by jbruns on Thu, 11 Jun 2020 06:23:55 +0200

Spring boot learning: the configuration method of Filter and the implementation principle of spring boot source code

Registration of Servlet, Filter, Listener In the case of spring boot application, because it starts a Servlet engine by itself, and needs to create a ServletContext object associated with the application to bind to the Servlet engine, so that the Servlet engine can receive the request and distribut ...

Posted by TristanOfADown on Thu, 11 Jun 2020 04:25:00 +0200

SpringBoot Distributed Task Middleware Development with video tutorials (hands-on instructions on developing and using middleware)

Author: Little FuBlog: https://bugstack.cn Sediment, sharing, growth, so that you and others can gain something!_ Distributed task DcsSchedule middleware, Github address: https://github.com/fuzhengwei/schedule-spring-boot-starter Distributed Task DcsSchedule Console, Github Address: https://github.com/fuzhengwei/itstack-middleware-control D ...

Posted by quak on Thu, 11 Jun 2020 03:44:00 +0200

Four ways Spring Boot implements timed tasks

Author: Wan QingHua wanqhblog.top/2018/02/01/SpringBootTaskSchedule/ Several ways to accomplish a timed task: Timer: This comes with JavaJava.util.TimerClass, this class allows you to schedule aJava.util.TimerTaskTasks.This allows your program to execute at a certain frequency, but not at a specified time.Less commonly used. ScheduledExecutor ...

Posted by rv20 on Wed, 10 Jun 2020 06:25:42 +0200

The way to open Spring Boot: using JPA to get data

1, Spring initialization 1. Open https://start.spring.io/ , fill in the relevant information of the project on this page, add the corresponding dependencies, and then click "GENERATE" to GENERATE a zip file, decompress it in a suitable location on your computer, and then open the project u ...

Posted by ljschrenk on Tue, 09 Jun 2020 06:16:14 +0200

Using Swagger to test the interface, how do I carry Token in the request header?

Questions from a small partner on WeChat: When he saw this, Songge suddenly thought that I had written Spring Boot+Swagger before: SpringBoot Integration Swagger2 Uses of OAuth2 + Jwt have also been written: Want to have fun with OAuth2 and JWT?See Songgo's performance But they haven't been written together yet, so little buddies have ques ...

Posted by raister on Tue, 09 Jun 2020 02:49:02 +0200

Springboot Alipay website payment, APP payment, single transfer to users, refund function

1, Overview Recently, in writing projects, I met the place where I would like to call Alipay payment (website management website payment, APP user payment, APP user withdrawals, that is, single transfer to users, refund). I've studied for a long time, and all of them are connected. Now I'll share my c ...

Posted by allaboutthekick on Fri, 05 Jun 2020 06:07:56 +0200

freemark+dom4j to realize automatic word export

We usually export word through poi. POI is best at the operation of EXCEL. The style control of word operation is too cumbersome. Today we will introduce how to export word templates through FREEMARK. [TOC] Development preparation The implementation of this paper is based on springboot, so all the products used in the project are derived fro ...

Posted by Joshv1288 on Mon, 25 May 2020 04:04:56 +0200

How springboot integrates Prometheus how to expose Histogram to obtain monitoring indicators such as P99

background How springboot integrates Prometheus is not described in detail here. For an understanding of the integration process, refer to the blog: Spring Boot uses Micrometer integrated Prometheus to monitor Java application performance, Let me tell you a little bit about how long p99, p90 and other metrics we need to get for some monitoring ...

Posted by weedo on Sat, 23 May 2020 21:43:57 +0200

SpringCloud exception handling unified encapsulation for me to do-use

brief introduction Repeat function for me to write.There are global exception handling and return wrapping in the SpringBoot project, and the return front end is with fields such as succ, code, msg, data, and so on.Single project scenario is a good solution, when there are many micro-service modules, many cases of development are to copy the or ...

Posted by iijb on Sat, 23 May 2020 05:57:28 +0200