刚开始,logback-classic和logback-core依赖是1.1.x版本,报上述错误
    而spring-boot-starter-webyy依赖版本是2.2.1.RELEASE,应该是二者版本不一致导致
    将logback版本改为1.2.3后解决

    1. <!-- 日志 包含slf4j接口和log4j实现 -->
    2. <dependency>
    3. <groupId>org.slf4j</groupId>
    4. <artifactId>slf4j-api</artifactId>
    5. <version>1.7.26</version>
    6. </dependency>
    7. <dependency>
    8. <groupId>ch.qos.logback</groupId>
    9. <artifactId>logback-classic</artifactId>
    10. <version>1.2.3</version>
    11. </dependency>
    12. <dependency>
    13. <groupId>ch.qos.logback</groupId>
    14. <artifactId>logback-core</artifactId>
    15. <version>1.2.3</version>
    16. </dependency>