摘要: @Autowired 字段 我们可以把 @Autowired 注解标注在类文件中的字段属性上,通过这种方式,Spring 容器启动的时候会查找相应的 Bean ,然后通过反射的方式注入到这个字段中。 @Controller public class PayController { @Autowire 阅读全文
posted @ 2021-04-30 09:32 danger0us 阅读(821) 评论(0) 推荐(0) 编辑