IDEA 调试常见问题

1.maven 编译时出现 There are test failures

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project web_nanchang: There are test failures.
[ERROR]
[ERROR] Please refer to E:\maven\web_nanchang\target\surefire-reports for the individual test results.
解决方法:
这是因为测试代码时遇到错误,它会停止编译。只需要在 pom.xml 的

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
                <testFailureIgnore>true</testFailureIgnore>            </configuration>
        </plugin>
    </plugins>
</build>

 

2.忽略kafka不可连设置

Topic(s) [topic] is/are not present and missingTopicsFatal is true

spring.kafka.listener.missing-topics-fatal=false

posted @ 2023-03-17 14:55  jihite  阅读(77)  评论(0编辑  收藏  举报