对实体 "characterEncoding" 的引用必须以 ';' 分隔符结尾。
2016-04-26 16:23
381 查看
报错场景
启动项目时,报这个错,错误内容如下:<span style="font-size:18px;">Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath*:spring-config-dao.xml] Offending resource: class path resource [spring-config.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 18 in XML document from URL [file:/E:/sources/gitosc/wms-mine/wms-inventory/wms-inventory-web/target/classes/spring-config-dao.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 18; columnNumber: 109; 对实体 "characterEncoding" 的引用必须以 ';' 分隔符结尾。</span>
解决办法
把JDBC连接mysql的URL中,所有的&符号,都改为& (有分号!!!)如我的:
jdbc.url=jdbc:mariadb://localhost:3306/dili_wms?useUnicode=true&characterEncoding=utf8
相关文章推荐
- 数据库迁移思路梳理
- 图的宽度优先算法
- 工作小感
- 工作问题-java-jq中循环id值的问题
- Java 集合系列01之 总体框架
- android studio debug签名设置
- 关于Bootstrap日期控件datetimepicker被模态框等遮罩在底部的问题及解决办法。
- redis常用内存优化手段与参数
- 自己写一个java.lang.reflect.Proxy代理的实现
- hdu_5670 进制问题+数学水题
- adb 自动检测无线安装apk
- [C++]STL之map
- 你可能漏掉的知识点: onResumeFragments
- UI设计中px、pt、ppi、dpi、dp、sp之间的关系
- protoc 命令参数
- iOS 数组内中英文混合排序
- iOS 数组内中英文混合排序
- android横竖屏切换时Activity的生命周期
- POJ 1459 最大流
- redis配置文件redis-common.conf