1.在编写xml文件时没有相关提示信息
例如编写mapper映射xml
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
首先要下载mybatis-3-mapper.dtd文件,然后在Myeclipse中windows->Preferences->Files and Editors->XML->XML Catalog
点击Add
Location 点击File System选择本机对应的dtd地址
Key Type选择URI
Key为上述头对应的网址
添加成功即可
2.The project cannot be built until build path errors are resolved
原因:之前将某个文件Add to Build Path,然后又把它所在的文件夹加入Build Path后从Build Path移除了,它也从Build Path中移除了,但是.classpath中却记录了该位置。
解决办法:找到工程所对应的文件夹,将.classpath对应的行删掉就可以了。
3.严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
由于
4.Expected value at 1:0
有几种原因:
1.JSON格式错误,可以去相关的json校验检验
2.JSON文件中含有/**/注释,全部删除就可以了