会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
唯💗独爱你
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
45
下一页
2023年4月5日
Ioc配置-第三方bean的配置方式
摘要: 示例:
阅读全文
posted @ 2023-04-05 20:48 唯💗独爱你
阅读(17)
评论(0)
推荐(0)
Ioc配置-ApplicationContext对象层次结构
摘要:
阅读全文
posted @ 2023-04-05 20:40 唯💗独爱你
阅读(14)
评论(0)
推荐(0)
Ioc配置——import导入配置文件
摘要: 主配置文件:applicationContext.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w
阅读全文
posted @ 2023-04-05 20:29 唯💗独爱你
阅读(28)
评论(0)
推荐(0)
Ioc配置——读取properties文件信息
摘要: import com.hw.dao.UserDao; import com.hw.service.UserService; public class UserServiceImpl implements UserService { private UserDao userDao; private S
阅读全文
posted @ 2023-04-05 18:45 唯💗独爱你
阅读(25)
评论(0)
推荐(0)
Ioc配置——SpEL表达式(springEL)
摘要:
阅读全文
posted @ 2023-04-05 13:16 唯💗独爱你
阅读(30)
评论(0)
推荐(0)
Ioc配置——集合类型的数据注入
摘要: import com.hw.dao.UserDao; import com.hw.service.UserService; public class UserServiceImpl implements UserService { private UserDao userDao; public vo
阅读全文
posted @ 2023-04-05 12:46 唯💗独爱你
阅读(25)
评论(0)
推荐(0)
Ioc配置——构造方法注入
摘要: import com.hw.dao.UserDao; import com.hw.service.UserService; public class UserServiceImpl implements UserService { /* 使用构造方法注入的方式:添加constructor */ pr
阅读全文
posted @ 2023-04-05 11:10 唯💗独爱你
阅读(32)
评论(0)
推荐(0)
Ioc配置——set注入
摘要: import com.hw.dao.UserDao; import com.hw.service.UserService; public class UserServiceImpl implements UserService { /* 使用set注入的方式: 1、对需要注入的资源变量添加set方法
阅读全文
posted @ 2023-04-05 10:16 唯💗独爱你
阅读(70)
评论(0)
推荐(0)
DI——依赖注入概念
摘要: 站在spring的角度看,是控制反转,由spring容器控制资源; 站在程序的角度看,是依赖注入,程序依赖spring提供的资源;
阅读全文
posted @ 2023-04-05 10:14 唯💗独爱你
阅读(36)
评论(0)
推荐(0)
2023年4月4日
Ioc配置——静态工厂与实例工厂创建bean
摘要:
阅读全文
posted @ 2023-04-04 23:02 唯💗独爱你
阅读(20)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
45
下一页