a @Import imports the component, the id is the full class name of the component by default 1 //The components in the class are set uniformly. All bean registrations configured in this class will
Category: Spring
Spring is an open source framework. Spring is a lightweight Java development framework that emerged in 2003 and was created by Rod Johnson. Simply put, Spring is a layered JavaSE/EEfull-stack (one-stop) lightweight open source framework
Springboot integrate Mybatis
SpringBoot integrates Mybatis
1. Introduce maven dependency package:
<< /span>dependency>
SpringCloud implementation service call (RESTTTEMPLATE mode)
The previous article “Spring Cloud Building Registration Center and Service Registration” introduced the construction of the registration center and service registration. This article will introduc
Initialize the problem encountered in Spring Boot
Cannot connect to localhost:8080 1
2
3
4
< /span>
org.springframework.boot
spring-boot-starter< /artifactId>
< /figure> This code in pom.xml is changed to
org.springframework.boot
Problems encountered in development – [Spring-security permission control framework]
1. When the console displays an error message: Bad credentials, there is a problem with the password. Check the password and verify it.
2. When the form form submits data, the default formdat
Common annotations for Spring
The Spring framework mainly includes IoC and AOP, both of which can be configured using annotations.
Development environment: IntelliJ IDEA 2019.2.2
Spring Boot version: 2.1.8
Create a new Sp
Spring overview
IOC Brief Description IOC (DI): Actually, the core concept of the Spring architecture does not It’s so complicated, and it’s not as obscure as described in some books. Java programmers know that: e
Springboot Frame SHEDLOCK + WebSocket feature conflict solution
Background description:
The first encounter in project development When the server is deployed in cluster mode, the timing tasks of multiple nodes will be executed at each node. For this single pro
Springboot configuration loading order
Transfer: https://blog.csdn.net/zl1zl2zl3/article/details/83716564
1, Devtools global settings properties on your home directory (~/.spring -boot-devtools.properties when devtools is active).
Springboot connection redis for crud
Springboot connects redis for CRUD:
1. Add the following dependencies:
org.springframework.boot
spring-boot-starter-data-redis
redis.clients
jedis
2.9.0
2. Configure r