视频中用到的是<bean id=...> <constructor-arg ref="userDao4Mysql"/> </bean> 表示在构造函数中引用userDao4Mysql这个类。 ref是引用的意思。