Solve the error The injection point has the following annotations_@org.springframework.beans.factory.annotation~

The error description is as follows: Reason for the error: The bean of type com.reggie.service.EmployeeService was not automatically assembled. The reason for my error was that I forgot to add the annotation @Service to the implementation class of EmployeeService, which means that automatic assembly was not implemented. Then I only need to add annotations to…

Read More

Solve the springboot project startup error Error creating bean with name 'dataSourceScriptDatabaseInitializer'

Error message: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘dataSourceScriptDatabaseInitializer’ defined in class path resource [org/springframework/boot/autoconfigure/sql/init/DataSourceInitializationConfiguration.class]: Unsatisfied dependency expressed through method ‘dataSourceScriptDatabaseInitializer’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’ defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfigurationHikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method…

Read More

Summary springboot starts jar and specifies configuration file

First: coverage -- Overwrite the application-dev.yml file in the file in the system, both specification methods are available By default, springboot reads application.properties>application.yml>specified file (application-dev.yml) first. Public configuration can be in application.yml, and other configurations in application-dev.yml 1)java -jar mssda.jar  -Dconfig.file\=application-dev.yml  2)java -jar mssda.jar   -Dspring.config.location=application-dev.yml Second: Directly quote all Use the following file to…

Read More

Youth apartment service platform source code database based on springboot

Most of the traditional information management relies on manual registration and management by managers. However, with the rapid development of information technology in recent years, many old-fashioned information management models have been updated and iterated. Because of the complicated management content of housing information, , the large number of managements means that manual processing cannot…

Read More

[SpringBoot3] Spring Security detailed usage examples (simple usage, JWT mode)

Note: This article is based on Spring Boot 3.2.1 and Spring Security 6.2.1 Spring Security is very simple to use. Just introduce the relevant dependency packages and then add the annotation @EnableWebSecurity. It also provides a wealth of extension points, allowing you to customize permission verification strategies. Common usage scenarios are divided into two categories:…

Read More

[Java] Implementing Redis Stream queue in SpringBoot

SpringBoot implements Redis Stream queue Preface Simply implement the method of operating the Redis Stream queue in SpringBoot and monitor the messages in the queue for consumption. jdk:1.8 springboot-version:2.6.3 redis: 5.0.1 (Stream queue is only available in version 5 or above) Preparation 1pom redis dependency package (version 2.6.3) <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId>…

Read More

Simple implementation of Spring state machine

1. What is a state machine? State machine, also known as finite state automaton, is a computing model that represents a limited number of states and behaviors such as transitions and actions between these states. The concept of state machine can actually be applied to various fields, including electronic engineering, linguistics, philosophy, biology, mathematics and…

Read More