<?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://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<bean name="book" class="model.Book">
<property name="names">
<array>
<value>如果爱</value>
<value>你好</value>
<value>hello</value>
<value>jiyou</value>
</array>
</property>
<bean>
<beans>
spring中的spring.xml配置文件的头文件要是3.0.xsd,如果不是在不支持数组值注入
最新推荐文章于 2024-09-18 09:16:06 发布