📜  组件 spring - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:25.803000             🧑  作者: Mango

代码示例1
@Component is an annotation that allows Spring to automatically detect our custom beans. In other words, without having to write any explicit code, Spring will: Scan our application for classes annotated with @Component. Instantiate them and inject any specified dependencies into them.