随笔分类 - Spring
摘要:
注解开发 代码 实体类User package com.q.dao; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Scope; imp
阅读全文

摘要:
Bean的自动装配 自动装配是使用spring满足bean依赖的一种方法 spring会在应用上下文中为某个bean寻找其依赖的bean。 Spring中bean有三种装配机制,分别是: 在xml中显式配置; 在java中显式配置; 隐式的bean发现机制和自动装配。 项目创建 一个人有两个宠物 C
阅读全文
