org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:spring-dao.xml]
Offending resource: class path resource [applicationContext.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 7 in XML document from class path resource [spring-dao.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 88; 1 字节的 UTF-8 序列的字节 1 无效。
最终的解决方法是把spring.dao里的注释都删掉了,怀疑是中文注释的编码有问题,导致tomcat解析不了,不清楚怎么搞才能可以有中文注释。又浪费两个小时,王德法
java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed 不允许检索公钥
url加上这一段就可以 allowPublicKeyRetrieval=true