摘要:
###多种类型的注入方式 对象的属性 ####beans.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://w 阅读全文
posted @ 2022-04-20 18:38
小幼虫虫
阅读(63)
评论(0)
推荐(0)
摘要:
参考:https://blog.csdn.net/zxcbnm7089/article/details/105677523 ###别名 <alias name="User0" alias="001"></alias> ###导入 在团队开发中,在总的配置文件.xml导入其他同事的配置文件,就能起作用 阅读全文
posted @ 2022-04-20 17:29
小幼虫虫
阅读(99)
评论(0)
推荐(0)
摘要:
###Spring IOC创建对象 ####beans.xml 对象在配置文件的时候,就会实例化,并且每个实例只有1个 三种创建方式:建议使用第三种 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframe 阅读全文
posted @ 2022-04-20 17:11
小幼虫虫
阅读(32)
评论(0)
推荐(0)

浙公网安备 33010602011771号