zoukankan      html  css  js  c++  java
  • Element 'dependencies' cannot have character[children],because the type's content type is elemen

    问题描述:

    Element 'xxxxxxx' cannot have character [children],because the type's content type is element-only

    原因:

    配置文件中的beans节点下面只能是元素节点,不能有字符或文本存在。

    比如多余的标点符号,点,也有可能是空格。

    解决:

    将配置文件之间的空格删掉,有时候眼睛看着明明没有什么问题,但是删掉就没有问题了。。。。

    类似于:

    <plugin> <groupId> org.apache.maven.plugins </ groupId> <artifactId> maven-shade-plugin </ artifactId> <version> 1.2.1 </ version> <executions> <execution> <phase> package < / phase> <goals> <goal> shade </ goal> </ goals> <configuration> <transformers> <transformer implementation =“org.apache.maven.plugins.shade.resource.ManifestResourceTransformer”> <mainClass> com.cloume .project.App </ mainClass> </ transformer> </ transformers> </ configuration> </ execution> </ executions> </ plugin>

    最后option+command+L回复格式就行了。

  • 相关阅读:
    Windows c++面向对象与可视化编程的基础知识
    Windows c++程序的基本结构
    云计算
    分布式计算
    从贝叶斯方法谈到贝叶斯网络
    C++函数调用
    插入排序
    Http请求中请求头Content-Type讲解
    5种PHP创建数组的方式
    js数组
  • 原文地址:https://www.cnblogs.com/jpfss/p/10857622.html
Copyright © 2011-2022 走看看