TypechoJoeTheme

香草物语

统计
登录
用户名
密码
/
注册
用户名
邮箱
输入密码
确认密码
搜索到 1 篇与 的结果
2021-05-29

spring boot 整合log4j2

spring boot 整合log4j2
log4j2的优点相比与其他的日志系统,log4j2丢数据的情况少;在多线程环境下,性能高于logback等10倍以上;利用jdk1.5并发的特性,减少了死锁的发生。使用添加依赖引入依赖时,需要首先排除spring boot自带的logback,然后在添加log4j2的依赖。 <!-- 排除 Spring-boot-starter 默认的日志配置 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> ...
Laughing
2021-05-29

Java

883 阅读
0 评论
2021年05月29日
883 阅读
0 评论