logback: Could not find Janino library on the class path 导致日志空文件

启动应用的时候发现info.log 日志文件是空文件,里面没有内容,仔细排查发现应用有个异常提示:Could not find Janino library on the class path
网上一搜发现是缺少jar包
maven 中添加:

<!-- The org.codehaus.janino:commons-compiler:2.6.1 dependency -->
    <!-- will be automatically pulled in by Maven's transitivity rules -->
    <dependency>
        <groupId>org.codehaus.janino</groupId>
        <artifactId>janino</artifactId>
        <version>2.6.1</version>
    </dependency>

猜你喜欢

转载自recotone.iteye.com/blog/2379255