[Line 1 in XML document from class path resource [xxx.properties] was invalid; nested exception is Org.xml.sax.SAXParseExce ption; linenumber:1; columnnumber:1; No content is allowed in the preface. ]
Master Please detour, I believe many novice and I have encountered such a mistake.
Like this guy in http://www.oschina.net/question/252854_145307 's post.
After Baidu, Google search no solution, decided to see if it is not where the configuration is wrong.
One hours later ...
Children's Shoes Please see if your XML configuration file for Web. config and sprig is configured with the same properties file?
If you have a congratulations, in this post you find the answer, please delete the same configuration in Web. Xml. Let spring do the things that initialize the properties file.
Younger brother new to get started spring. For such a mistake is entirely out of your own opinion, if you do not solve your problem, and you solve it yourself. Please add qq:290010324. wish to hear its details.
Beginners learn about the low-grade errors that spring may encounter ...