问答详情
源自:2-4 Mybatis自动生成器使用方式

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project demo: Input length = 1 ->

不知道问题出现在什么地方?是配置还是哪里出问题了?

提问者:慕虎0393412 2021-03-26 15:52

个回答

  • 慕虎0393412
    2021-03-26 17:31:30

    此问题已解决。

    pom.xml下面添加如下插件

    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.7</version>
        <configuration>
            <!-- 在构建路径中 指定源文件编译的字符编码 -->
            <encoding>UTF-8</encoding>
        </configuration>
    </plugin>