SpringBoot database operations

Integrated JdbcTemplate   1 import dependency: <!--jdbc starter--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <--Introducing database driver--> <dependenc ...

Posted on Sat, 25 Sep 2021 14:48:32 -0400 by drtanz

rabbitmq implementation of spring boot for message reliability

1. The producer module realizes message reliability through publisher confirm mechanism 1.1 producer module import rabbitmq related dependencies <!--AMQP Dependency, including RabbitMQ--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> </ ...

Posted on Fri, 24 Sep 2021 09:19:51 -0400 by CMC

[Spring Boot] usage example of Spring Boot + HikariCP connection pool

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

[Spring Boot] Spring Boot Filter

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

cgb2107 - phase III - day02 mybatis

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"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xm ...

Posted on Thu, 23 Sep 2021 09:46:26 -0400 by lauxanh

SpringBoot auto configuration principle and how to create your own Starter

[copyright notice] for non-commercial purposes, indicate the source and can be reproduced freely From: shusheng007 summary 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

Cors solves cross domain problems

problem 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

springboot integrated shiro (full version)

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

Microservice file upload practice

Business description File upload based on Spring Cloud Alibaba solution, such as Project creation and initialization engineering structure 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

SpringBoot learning summary

Study preparation 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