Spring boot docker Jenkins automatic deployment and image upload

springboot + docker + jenkins automatic deployment project. jenkins, mysql and redis are all operated by docker without using virtual machine. They are running on Alibaba cloud server (centos7) 1. Don't talk about the preparatory work 2. Create a new Dockerfile in the root directory of the project The contents of the Dockerfile file are: #base ...

Posted by MyWebAlias on Mon, 04 May 2020 02:13:46 -0700

After using knife4j, I finally gave up swagger UI

introduce knife4j is an enhanced solution for generating Api documents for Java MVC framework integration Swagger, formerly Swagger bootstrap UI, named kni4j in the hope that it can be as small, light and powerful as a dagger! The predecessor of knife4j is swagger bootstrap Ui. In order to adapt to the development of microservice architecture ...

Posted by oliverw92 on Sun, 03 May 2020 12:35:14 -0700

Yan Yan Springboot development WeChat official account (two)

Yan Yan Springboot development WeChat official account (two) Message reception and reply: Text message Graphic message information about the music Picture message Geolocation message Link message Audio message Event push Text message respContent = "Welcome to pay attention "+logo+" ! We will try our best to provide you with more wonder ...

Posted by Sinemacula on Sat, 02 May 2020 10:31:57 -0700

Spring Boot Aspect Aop thought

Spring Boot Aop Scope of Aspect Comment writing of interception rules Writing configuration file Aopconfig The compilation of add operation of comment interception Operation writing of add intercepted by method The writing of logAspect facet Writing of Main Operation results Scope of Aspect In o ...

Posted by rocky on Wed, 29 Apr 2020 21:17:19 -0700

Spring boot log Foundation

Springboot configuration log configuration file location logging.config: classpath:logging/logback.yml Spring boot log classification log4j: an open source log component implemented by apache logback: it is also designed by the author of log4j. It has better features. It is a log framework used to replace log4j and is the native implementation ...

Posted by aris1234 on Tue, 28 Apr 2020 19:41:38 -0700

Spring Boot + Spring Security for automatic login

Automatic login is a very common function in software development. For example, we log in to QQ email: Many websites will see similar options when we log in. After all, it's a very troublesome thing to let users enter their user name and password. The automatic login function is that after the user logs in successfully, if the user closes the ...

Posted by mentalist on Tue, 28 Apr 2020 19:02:09 -0700

Introduction to the use of Redis--Jedis

1. Create project 1.1 creation steps 1.2 add pom dependency <dependencies> <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>2.9.0</version> </dependency> <!--test--> <dep ...

Posted by premracer on Mon, 27 Apr 2020 07:14:31 -0700

Spring boot series elegant handling of unified exception handling and unified result return

Spring boot series (x) unified exception handling and unified result return Previous recommendation Spring boot series (I) idea new spring boot project Introduction to SpringBoot series (2) Spring boot series (3) configuration file details Spring boot series (IV) detailed explanation of web static resource configuration Spring boot series (V) M ...

Posted by countcet on Sun, 26 Apr 2020 06:25:32 -0700

Take over the project left by my old brother, there is a big hole! Processing global date formatting with springboot

Recently, several colleagues of the Department have been wronged and left one after another. They are reluctant to leave when they have been working together for three years. After all the formalities have been properly handled, they are sent out of the company after greetings. Several elder brothers laugh at me when they leave. I immediately f ...

Posted by johnmess on Thu, 23 Apr 2020 02:59:06 -0700

User authentication with jwt under front-end and back-end separation

0 User Information Authentication with Front-end and Back-end Separation The front end uses Vue+axios and the back end uses SpringBoot+SpringSecurity. To solve the stateless problem of http, I use jwt(json web token) to save user information, bring it with the front end each time a request is made, and give it to the back end for user authentic ...

Posted by mega77 on Wed, 22 Apr 2020 18:43:37 -0700