xmlns和xsi之schemaLocation

  appplicationContex.xml文件报错:元素 "util:constant" 的前缀 "util" 未绑定
  在根节点添加了“xmlns:util="http://www.springframework.org/schema/util
 
  继续报错:通配符的匹配很全面, 但无法找到元素 'util:list' 的声明。  
  继续在xsi:schemaLocation里面添加了  
  http://www.springframework.org/schema/util
  http://www.springframework.org/schema/util/spring-util-2.5.xsd
 
  问题解决。
 
  说明:声明了namespace(xmlns)之后,一定要在xsi:schemaLocation中增加对应的schema位置说明

posted on 2018-04-29 18:16  下士闻道  阅读(331)  评论(0编辑  收藏  举报

导航