Org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:Line. XML document fromclassPath resource [spring-context.xml] is invalid; Nested exception is org.xml.sax.SAXParseException; linenumber:26; columnnumber:98; The reference to the entity "characterencoding" must be '; 'The end of the delimiter. At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions ( Xmlbeandefinitionreader.java:396) at Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions ( Xmlbeandefinitionreader.java:334) at Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions ( Xmlbeandefinitionreader.java:60W) at Org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions ( Abstractbeandefinitionreader.java:174) at Org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions ( Abstractbeandefinitionreader.java:209) at Org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions ( Abstractbeandefinitionreader.java:180) at Org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions ( Xmlwebapplicationcontext.java:125) at Org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions ( Xmlwebapplicationcontext.java:94) at Org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory ( Abstractrefreshableapplicationcontext.java:130) at Org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory ( Abstractapplicationcontext.java:537) at Org.springframework.context.support.AbstractApplicationContext.refresh (Abstractapplicationcontext.java: 451) at Org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext ( Contextloader.java:389) at Org.springframework.web.context.ContextLoader.initWebApplicationContext (Contextloader.java:294) at org.springframework.web.context.ContextLoaderListener.contextInitialized (Contextloaderlistener.java: 112) at Org.apache.catalina.core.StandardContext.listenerStart (Standardcontext.java:4210) at Org.apache.catalina.core.StandardContext.start (Standardcontext.java:4709) at Org.apache.catalina.core.ContainerBase.start (Containerbase.java:1060) at Org.apache.catalina.core.StandardHost.start (Standardhost.java:822) at Org.apache.catalina.core.ContainerBase.start (Containerbase.java:1060) at Org.apache.catalina.core.StandardEngine.start (Standardengine.java:463) at Org.apache.catalina.core.StandardService.start (Standardservice.java:525) at Org.apache.catalina.core.StandardServer.start (Standardserver.java:759) at Org.apache.catalina.startup.Catalina.start (Catalina.java:595) at Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at Sun.reflect.NativeMethodAccessorImpl.invoke (Unknown source) at Sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown source) at Java.lang.reflect.Method.invo Ke (Unknown Source) at Org.apache.catalina.startup.Bootstrap.start (Bootstrap.java:289) at Org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:414)
In the Sping-context.xml:
<!--Set database connection Parameters--
<property name= "url" value= "Jdbc:mysql://localhost:3306/sblog?useunicode=true& Characterencoding=utf8 "/>
In the XML file & to use & Alternative.
[Spring] The reference to the entity "characterencoding" must end with the '; ' delimiter