spring boot
迎风逐月
这个作者很懒,什么都没留下…
展开
-
log4j2自定义appender,spring boot 多模块打包后没有日志输出
前提log4j2 自定义了appender,并且在log4j2xxx.yml文件里指定了包名,package:xxx。spring boot多模块打包现象,能够生成日志文件,但文件始终为空原因因为spring boot 工程bootjar打包后的jar包中,包名:/BOOT-INF/classes/包/xxx.class,所以log4j2 用我们指定的包去搜索时,搜索不到自定义的pl...原创 2019-11-26 17:32:40 · 1293 阅读 · 0 评论 -
idea spring boot + Gradle test 时报错,No tests found for given includes
idea spring boot + Gradle test 时报错,No tests found for given includes:xxxx (filter.includetestsmatching)1. 问题描述下载了新版的idea,使用spring boot工程,写测试例子,运行报错build.gradle 尝试了添加test { useJUnitPlatform()...原创 2019-11-12 15:35:08 · 3932 阅读 · 1 评论