首页 试题广场 > 试题详情
单选题

【C015461】在拆分Spring配置文件时,有如下代码:
<!-- Spring 配置 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<!--配置多个Spring 配置文件-->
<param-values>
classpath:applicationContext.xml,
classpath:applicationContext-dao.xml,
classpath:applicationContext-service.xml,
classpath:applicationContext-action.xml
</param-values>
</context-param>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
关于这段代码的说法正确的是( )。

  • A.此配置文件同时加载4个配置文件,并且能正常使用
  • B.此配置文件中有错误,<param-values>应该是<param-value>
  • C.此配置文件中有错误,< context-param >应该是< context-params>
  • D.此配置文件中有错误,在加载的多个配置文件之间应该以分号(;)分隔
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 2个回答
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部