Getting started with Spring Cloud components -- Security

brief introduction Spring Cloud Security provides a series of solutions for building secure spring boot applications. Combining with Oauth2, it can realize functions such as single sign on, token relay and token exchange. OAuth 2.0 is an industry standard protocol for authorization. OAuth 2.0 provides ...

Posted on Sat, 20 Jun 2020 23:53:27 -0400 by harinath

Spring Boot multi module development and pit drainage guide none in history

Recommended reading: How to improve the core competitiveness of Java engineers who have worked for 1-5 years                   Ali architect said: "no real combat is just talking on paper"! Redis live PDF sharing                   Working hard for more than half a year, Ali finally got hi ...

Posted on Sat, 20 Jun 2020 04:52:25 -0400 by canadian_angel

Spring Boot+Element files are uploaded synchronously with form upload files

Business logic needs to add records first and then generate corresponding unique file names by adding the IDS returned by the sql operations of records. el-upload does not automatically upload some pits described below <el-upload :action="uploadUrl()" :on-remove="handleRemove" :before-upload="bef ...

Posted on Fri, 19 Jun 2020 22:45:00 -0400 by revraz

Spring boot auto configuration principle

Spring boot auto configuration principle For example, spring boot's auto configuration principle is similar to the restaurant's mechanism. For my favorite fish scout recently, if we compare spring boot to fish scout and dinner to our application, when we come to fish scout for dinner (equivalent to ...

Posted on Fri, 19 Jun 2020 07:43:01 -0400 by devinemke

Unexpectedly, Java operation Excel is so simple!

preface In the work, using excel to process data is a very common operation. This article will explain how to use the open source wheel to realize the function of downloading, importing and exporting. Before, many Java programmers liked to use the class library of POI to operate excel, but it was very ...

Posted on Fri, 19 Jun 2020 06:28:32 -0400 by rudy.siregar

Latest nginx load balancing cluster tomcat1 and tomcat2, session sharing solution spring session detailed tutorial

1, Software architecture nginx-1.19.0 windows 64 bit version apache-tomcat-9.0.30-windows-x64 Redis-x64-3.2.100 Apache Maven 3.5.3 java web project integration Spring Session 2, java project configuration Create a new java maven web project. The name of the project is based on your hobbies. I'm s ...

Posted on Fri, 19 Jun 2020 03:43:14 -0400 by damic

This article explains how transactions in Spring Boot are implemented

summary We have been using @ Transactional in SpringBoot to do transaction management, but seldom thought about how SpringBoot can achieve transaction management. Today, we start from the source code to see how @ Transactional can achieve transaction management. Finally, we write a similar annotation to help us deepen our understanding by combi ...

Posted on Fri, 19 Jun 2020 03:37:39 -0400 by jwaqa1

Five minutes to integrate elastic search in springboot

Elasticsearch is an open-source distributed RESTful search and analysis engine, which enables you to store, search and analyze a large number of data quickly and almost in real time, and can solve more and more different application scenarios. For example, it can be used to search the products of the online store, the search of users, and the ...

Posted on Fri, 19 Jun 2020 01:52:01 -0400 by Christoph09

File upload and Tomcat mapping path setting of Spring MVC

File upload and Tomcat mapping path setting of Spring MVC catalog File upload and Tomcat mapping path setting of Spring MVC summary: To configure MultipartResolver: Tomcat configuration Configuration of tomcat deployment in IDEA Controllers and pages: Results: summary: Spring MVC provides ...

Posted on Fri, 19 Jun 2020 01:07:28 -0400 by w4designs

Dynamic update of JAVA static constant non @ Value annotation based on NACOS and JAVA reflection mechanism

1. Preface Constant class files are used in projects. If the values need to be changed, the code needs to be resubmitted, or the @ Value annotation is used to realize dynamic refresh. If there are too many constants, it is also very troublesome. Can there be a simpler way to implement them? This article describes the way that a JAVA class cor ...

Posted on Thu, 18 Jun 2020 22:05:31 -0400 by Frame