zoukankan      html  css  js  c++  java
  • xml文件报错(持续总结,持续更新)

    集合我的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?...

    它的头文件是这样的

    1. <?xml version="1.0" encoding="UTF-8"?>  
    2. <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN"   
    3. "http://mybatis.org/dtd/mybatis-3-config.dtd">  

    但它错误提示一直显示在第三那里,通过翻译错误提示,可以知道:

    每个标签必须按顺序写:The content of element type "configuration" must match "(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>



  • 相关阅读:
    数据科学 R语言速成
    F#周报2019年第29期
    F#周报2019年第28期
    F#周报2019年第27期
    F#周报2019年第26期
    F#周报2019年第25期
    F#周报2019年第24期
    F#周报2019年第23期
    .NET工程师的书单
    F#周报2019年第22期
  • 原文地址:https://www.cnblogs.com/liva-/p/11250638.html
Copyright © 2011-2022 走看看