This page will introduce examples of Spring Boot and HikariCP.
HikariCP is a fast, simple, reliable and production ready JDBC connection pool.
In spring boot version 2.0, the default database connection pool technology has been switched from Tomcat pool to HikariCP.
This is because HikariCP provides excellent performance.
Now, since the ...
Posted on Fri, 24 Sep 2021 04:10:17 -0400 by web.designer.iq
This page will introduce an example of Spring Boot filter.
Filters can be registered using the FilterRegistrationBean class or the @ Component annotation or the @ ServletComponentScan annotation.
FilterRegistrationBean registers Filter as a Spring Bean, which provides methods such as adding URL mapping and setting Filter order.
When we r ...
Posted on Fri, 24 Sep 2021 03:22:30 -0400 by grail
1.SpringBoot advanced usage
1.1 create a SpringBoot project using the general method 1.1.1 create maven project 1.1.2 edit pom.xml file Note: for a new project, you only need to copy the configuration file other than the coordinates
<?xml version="1.0" encoding="UTF-8"?>
Posted on Thu, 23 Sep 2021 09:46:26 -0400 by lauxanh
[copyright notice] for non-commercial purposes, indicate the source and can be reproduced freely From: shusheng007
Now, Spring is the absolute overlord of Java backend, and Spring boot based on Spring has become the preferred way to use Spring. When I first used SpringBoot, I thought it was amazing. I just added a Spring boot st ...
Posted on Thu, 23 Sep 2021 09:41:44 -0400 by nevynev
Problem: axios requests. There are two requests, one of which is Request Method: OPTIONS
Reason: cross domain reason
Cross domain problem
What is cross domain
Cross domain refers to cross domain access. The following situations belong to cross domain:
Cross domain reason descriptionExampleDifferent domain nameswww.jd.com ...
Posted on Thu, 23 Sep 2021 03:10:25 -0400 by Mattyspatty
The source code address is added at the end of the article. Friends who report errors can download it - updated on June 15, 2020
At the request of netizens, the code of this pom file has been pasted completely, The springboot version uses the latest 2.3.4.RELEASE, shiro version uses the latest 1.6.0 The pro test is valid and will be updat ...
Posted on Thu, 23 Sep 2021 01:45:36 -0400 by mgilbert
File upload based on Spring Cloud Alibaba solution, such as
Project creation and initialization
Refer to the following engineering structures for project creation, for example:
Create parent project
Create a project parent project to manage project dependenci ...
Posted on Tue, 21 Sep 2021 20:03:27 -0400 by DontheCat
Create a project directly using IDEA
1. Create a new project
2. Select spring initalizr You can see that the default is to go to the quick build tool on the official website
3. Fill in project information
4. Select the component to initialize
5. Fill in the project path
6. Wait for the project to build success ...
Posted on Tue, 21 Sep 2021 19:54:44 -0400 by furotte