---
title: "配置文件没有编译"
author: "wangyanlong0107"
date: "2017-05-09T15:30:12Z"
tags: []
categories: ["开源软件"]
slug: "untitled"
draft: false
lastmod: "2017-05-09T15:30:12Z"
id: 2373375
url: "https://bigdragon.iteye.com/blog/2373375"
---

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 15 in XML document from file \[F:\\NetStone-Aggregation\\StoneWebService\\target\\ROOT\\WEB-INF\\classes\\applicationContext-cache.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 15; columnNumber: 11; cvc-complex-type.2.3: 元素 'list' 必须不含字符 \[子级], 因为该类型的内容类型为“仅元素”。

 

maven compile才编译配置文件，直接启动tomcat只编译class文件，所以先compile再启动tomcat，配置文件就编译好了。