Add dependencies Springboot3.0.2 is used here rely <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.32</vers
SpringBoot+ENC implements key encryption and usage principles
😊 @ Author: It’s a flash in the past 💖 @Homepage: https://blog.csdn.net/zhuocailing3390 🎊 @ Community: Java Technology Stack Exchange 🎉 @ Topic: SpringBoot+ENC implements key encryption and usage principles ⏱️ @ Creation time: June 23, 2024 Table of contents Preface Integrate SpringBoot 1.1、POM 1.2. Encryption salt value configuration 1.3. Use of t
Springboot&redisson implements delay queue
Redisson implements delay queue Version Notes: spring boot 2.6.0 redisson-spring-boot-starter 3.28.0 1. Add dependencies & configuration <dependency> <groupId>org.redisson</groupId> <artifactId>redisson-spring-boot-starter</artifactId> <version>3.28.0</version> </dependency> application.properties
Comprehensive analysis of SpringBoot mail service integration configuration
Preface This article takes NetEase mailbox (and 163 mailbox) as an example to show how to integrate email services for the SpringBoot project. Other mailbox configurations are similar. You can check the Spring Email guide or other official documents. Authorization code First we need to obtain the authorization code for subsequent configuration and
SpringBoot connects to iFlytek Spark model to implement dialogue
Application address https://xinghuo.xfyun.cn/sparkapi?scr=price Apply for 2 million Tokens for free Development documentation https://www.xfyun.cn/doc/spark/Web.html#_1-Interface Description There are related demos at the bottom of the page for reference. introduce The interface is returned in segments in the form of sockets, and non-http reque
springboot jpa paging query methods (two types)! ! !
springboot jpa paging query methods (two types) 1.PagingAndSortingRepository interface 2. @Query annotation custom query method Summarize This article introduces two commonly used methods for Spring Data JPA paging queries. 1. PagingAndSortingRepository interface Create a Repository interface that inherits from PagingAndSortingRepositor
SpringBoot 3 new features
Table of contents 1. GraalVM 1.1 Generate local executable application 1.2 Generate docker image 2. Support virtual threads 2.1 Stress test when virtual thread is not enabled 2.2 Stress test when virtual thread is enabled 3. HTTP Interface 1. GraalVM Using GraalVM to compile SpringBoot applications into local executable image files
springboot + uniapp implements single file upload and image echoing
1. Use the uni-file-picker component tag For specific usage, please see the introduction of uni-file-picker on the official website of uniapp. Front-end code The code is as follows. It is uploaded to the backend through uni.uoloadFile and returns url. The address is assigned value for image echo. <template> <view class="container"> <
Spring.servlet.multipart configuration does not take effect
1. If the interface request error is caused by nginx Check the configuration in nginx: http { client_max_body_size 100m; } or: location ^~ /aaa/ { client_max_body_size 100m; client_body_buffer_size 128k; } 2. If it is caused by the interface Tomcat is used as the web container For example, for springboot 2.X or above, configure the following [&hell
Detailed explanation of the use of spring.profiles
This article explains the usage and differences between spring.profiles.active and spring.profiles.include Article Directory Business scene spring.profiles.active property Specified at startup spring.profiles.includeProperty Configuration method Configuration location Configuration differences Use and differentiate with examples *Test 1 Test 2 Test