集合我的bug,不懂就百度,一些能解决一些只能靠自己去debug
总结两条关于xml文件报错,后续有关于xml的错误也会更新~~
1.the prefix aop for element "aop:config" is not bound错误
在使用 aop:config 标签时,xml编译错误报:the prefix aop for element "aop:config" is not bound错误
原因是:未在xml文件头部导入xmlns:aop=“http://www.springframework.org/schema/aop”
2.The content of element type "configuration" must match "(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?...
它的头文件是这样的
?xmlversion="1.0"encoding="UTF-8"? !DOCTYPEconfigurationPUBLIC"-//mybatis.org//DTDConfig3.0//EN""http://mybatis.org/dtd/mybatis-3-config.dtd"
但它错误提示一直显示在第三那里,通过翻译错误提示,可以知道:
每个标签必须按顺序写:Thecontentofelementtype"configuration"mustmatch"(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,plugins?,environments?,mappers?)".
3.Description Resource Path Location Type Dynamic Web Module 4.0 requires Java 1.8 or newer.
这虽然不是xml的问题,是整个项目报错,但是解决的办法是在pom.xml文件中插入下面一段代码解决:
在 build /build 中添加
plugins
plugin
groupId org.apache.maven.plugins /groupId
artifactId maven-compiler-plugin /artifactId
version 2.3.2 /version
configuration
source 1.8 /source
target 1.8 /target
/configuration
/plugin
/plugins