- 博客(3)
- 收藏
- 关注
原创 关于Spring中xml文件中的一些小细节
1、constructor-arg1.1、type属性 <bean id="stu" class="com.etoak.Student"> //constuctor-arg如果设置了type属性,会根据类型来找到相应的形参 <constructor-arg type="int"> <value>18</value> </constructor-arg> &l
2022-04-29 22:13:29
1064
原创 Spring中Bean实例化方式
1、调用无参构造方法<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http:/
2022-04-28 23:01:27
505
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人