- Building Microservices with Spring
- Dinesh Rajput Rajesh R V
- 30字
- 2021-07-02 14:54:08
Injecting Spring beans
Spring provides these two ways to define the DI pattern to inject the dependency with the dependent bean in an application:
- Using constructor injection
- Using setter injection