- 第一种方式:直接注入
- 第二种方式注入:定义公共集合(需要在xml文件中加入如下命名空间)
第二种方式注入:定义公共集合(需要在xml文件中加入如下命名空间)Java MySQL Spring Java MySQL Spring
Java MySQL Spring
xmlns:util=“http://www.springframework.org/schema/util”
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd">



