springboot integrates Redis to save commodity and commodity inventory information

1. Add dependencies and configuration <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> Add the following configuration in application.yaml: spring: redis: # address host: localhost # port, default is 6379 port: 6379 # password password: # Connection timeout timeout: 10s lettuce: pool: # The minimum idle connection in the connection pool min-idle: 0 # The maximum idle connection in […]

[Nginx] cache integration

Article directory The concept of caching Nginx web cache service Related instructions for Nginx cache settings Nginx cache setting case Clearing of Nginx cache Method 1: Delete the corresponding cache directory Method 2: Use a third-party extension module Nginx sets resources not to cache The concept of caching Cache is the buffer for data exchange […]

Use Maven to quickly integrate and build and develop JavaFX for desktop application development

Purpose: Don’t step on the pit you have stepped on once Nanny-level tutorials, package education package meeting With this method, you don’t need to worry about manually configuring the jar package every time, and you don’t need to worry about the VM parameter –module-path of the startup class. With this method, you don’t need to […]

After the Dataway integrated swagger interface is updated, it cannot be updated on the swagger web side

Use version hasor-spring: 4.2.5 hasor-dataway: 4.2.5 springboot 2.5.0 swagger:springfox-boot-starter 3.0.0 Description of the problem After Dataway configures swagger, the interface document will always display the content published by the Dataway interface for the first time. After modification and re-release, it cannot be updated to the latest record. Issue Tracking The interaction between Dataway and swagger […]

MinIO installation and integrated java usage, user permission control

Look at the permission and jump directly to 4. Realization of minio user permission control Directory 1. MinIO installation and integration springboot using MinIO official documents 1. Pull the Docker image of MinIO 2. Run MinIO in the Docker container, here we hang the data and configuration folders of MiniIO on the host 3. springcloud […]

Cross-account and cross-network private API integration based on Amazon API Gateway

1. Background introduction The main issue discussed in this article is to use Amazon API Gateway to complete cross-account or cross-network API integration in a private network environment through Private Integration and Private API. The API management platform will be designed in a separate account (Amazon Cloud Technology provides a multi-tenant environment), because the existence […]

springboot integrates redis under windows

Installation tutorial: How to install Redis under Widows? 1. Start the redis service first 2. Import prm.xml <dependencies> <!–redis dependency–> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> <version>2.7.0</version> </dependency> </dependencies> 3. Configure yml spring: #Configure reids redis: host: 127.0.0.1 #Local IP address port: 6379 #reids service port number 4, reids configuration class ** * redis configuration class */ @Configuration […]

Seamless integration of Spring Cloud and Docker

Seamless integration of Spring Cloud and Docker 1. Introduction 1.1 Spring Cloud 1.2 Docker 1.3 Why do you need the integration of Spring Cloud and Docker 2. Basic knowledge 2.1 Basic knowledge of Spring Cloud 2.1.1 Overview of Spring Cloud 2.1.2 Spring Cloud component introduction 2.2 Basic knowledge of Docker 2.2.1 Overview of Docker 2.2.2 […]

Spring Boot Series: Integrating Redis Database Distributed Tools Redisson Cache Spring Cache

Integrated Redis database distributed tool Redisson cache Spring Cache Redis client Jedis Jedis is a lightweight Redis client implemented in Java, with a simple and Socket-based operation mode and high performance. Jedis API provides comprehensive support for Redis commands. Using blocked I/O operations, method calls are all synchronous, and the program flow cannot be executed […]