zoukankan      html  css  js  c++  java
  • spring装载配置文件失败报错:org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException

      Tomcat容器启动失败,找到 debug日志一看:

     Context initialization failed

         org.springframework. beans.factory.xml.XmlBeanDefinitionStoreException:Line 1 in XML document from file [spring-wlf.xml] is invalid;nested exception is org.xml.sax.SAXParseException:The processing instruction target matching "[xX][mM][1L]” is not allowed.

      回头打开spring-wlf.xml仔细看了下

     <?xml version="1.0" encoding="UTF-8"?>

      竟然在文件开头多了一个空格,导致识别不了文件。不得不承认,有时候问题就是这么纠结而细微:在<?xml前面有个不起眼的空格。

  • 相关阅读:
    Sass变量、嵌套
    遮罩层2
    遮罩层
    大图轮播
    项目资料(主页)
    关于时间控制和制定时间日期
    dom作业
    js的dom操作和函数
    js数组去重
    js For循环练习。
  • 原文地址:https://www.cnblogs.com/wuxun1997/p/6375038.html
Copyright © 2011-2022 走看看