SpringBoot implements multiple data source configuration

Spring boot for multi data source configuration springBoot implements the configuration of multiple data sources application.properties Configure two data sources in spring.datasource.primary.url=jdbc:mysql://localhost:3306/test1 spring.datasource.primary.username=root spring.datasource.primary.password=root spring.datasource.primary.driv ...

Posted on Mon, 20 Jul 2020 12:04:53 -0400 by Julian Pedley

The first springboot project

The company's recent projects use some components in springboot and springcloud. At first, they mainly write some business code, do not know how to configure it, etc. So recently, just have time to learn, record and summarize, and welcome to make corrections. Start the first springboot project (eclipse+maven): 1. New maven project, add depend ...

Posted on Fri, 17 Jul 2020 11:28:51 -0400 by businessman332211

Overview of springMVC's ability to download Excel tables

spring provides encapsulation classes for Excel DownloadsOrg.springframework.web.Servlet.view.document.AbstractExcelView, when implemented, simply implement a class that inherits AbstractExcelView, then override the buildExcelDocument(Map<String, Object> model,HSSFWorkbook workbook, HttpServletRequest request,HttpServletResponse respo ...

Posted on Wed, 08 Jul 2020 11:05:55 -0400 by thomasd1

spring boot integrated redis

It is convenient to integrate common NO SQL with Springboot following the principle of "convention is greater than configuration". This example makes a simple demo with redis, using Redis's set and get commands. Introduce dependency packages for redis. <dependency> <groupId>or ...

Posted on Sun, 05 Jul 2020 12:08:07 -0400 by TLawrence

User defined OAuth2.0 token issuing interface address

Login implementation Take the example of a web browser login: The essence of web login based on OAuth2.0-password mode is that the browser passes the user name and password to the background through the / oauth/token interface, and then returns a valid token to the browser after the background verification Send the request through the curl comm ...

Posted on Tue, 30 Jun 2020 01:46:37 -0400 by Chalks

User defined OAuth2.0 token issuing interface address

Login implementation Take the example of a web browser login: The essence of web login based on OAuth2.0-password mode is that the browser passes the user name and password to the background through the / oauth/token interface, and then returns a valid token to the browser after the background verification Send the request through the curl comm ...

Posted on Tue, 30 Jun 2020 01:32:05 -0400 by limpo

Spring security

The mind map is as follows RBAC authority analysis RBAC is the full name of role-based permission control. This section will describe RBAC from the following aspects: what is RBAC, model classification, what is permission, the use of user groups, and case analysis Mind map Draw a mind map as follows ...

Posted on Mon, 29 Jun 2020 23:20:10 -0400 by Ward

Using @ controlleradvce and ErrorController interfaces in springMvc

Using @ controlleradvce and ErrorController interfaces in springMvc 1, Introduction aop can be used for global processing in spring MVC. Here we introduce another way, with the help of springMvc's controlleradvce annotation and ErrorController interface. 2, ControllerAdvice annotation @Controllera ...

Posted on Mon, 29 Jun 2020 05:25:47 -0400 by lowspeed

Spring Boot & Restful API!

Author: liuxiaopeng https://www.cnblogs.com/paddix/p/8215245.html In the current development process, in order to achieve the maximum separation between the front end and the back end, the back-end interface only provides the data interface. The front-end obtains the data from the back-end through the Ajax request and renders it to the user. ...

Posted on Mon, 29 Jun 2020 04:21:04 -0400 by TCovert

Spring Boot & Restful API!

Author: Liuxia openghttps://www.cnblogs.com/paddix/p/8215245.html In the current development process, in order to achieve the maximum separation between the front end and the back end, the back-end interface only provides the data interface. The front-end obtains the data from the back-end through the Ajax request and renders it to the user. ...

Posted on Mon, 29 Jun 2020 03:57:21 -0400 by summerjamn