日志输出不了: System.out.println(“json对象”);
当配置文件输出到文件夹的时候,程序里 System.out.println(“json对象”);输出不打印,解决方法。
其中配置文件:
logging:
level:
com.meng.weixin.mapper: DEBUG
file:
path: E://test/a
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
亲测有效:
可以输出:log.info(“上传处方返回”); 前提是在类上加注解@Slf4j