摘要:
1.工厂bean package com.cj.spring5; import org.springframework.beans.factory.FactoryBean; public class MyBean implements FactoryBean<Course> { //定义返回的bea 阅读全文
posted @ 2022-08-18 23:04
写代码的小哥哥
阅读(43)
评论(0)
推荐(0)
摘要:
1.注入空值 <property name="tag"> <null></null> </property> 2.特殊字符 <property name="name"> <value> <![CDATA[<<java入门到精通>>]]> </value> </property> 3.外部bean的操 阅读全文
posted @ 2022-08-18 17:08
写代码的小哥哥
阅读(25)
评论(0)
推荐(0)
摘要:
1.创建对象 2.注入属性 2.1 set注入 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org 阅读全文
posted @ 2022-08-18 00:14
写代码的小哥哥
阅读(23)
评论(0)
推荐(0)
摘要:
1.IOC 控制反转 把创建对象过程交给Spring管理 2.xml解析、工厂模式、反射 阅读全文
posted @ 2022-08-18 00:11
写代码的小哥哥
阅读(22)
评论(0)
推荐(0)