当前位置:网站首页>jeecgboot输出日志,@Slf4j的使用方法
jeecgboot输出日志,@Slf4j的使用方法
2022-07-01 03:17:00 【三个人工作室】
直接上代码:
基本格式
@Slf4j
public class xxxxx {
log.info("xxxxxxxxxxxxxxxxxxx");
}
动态输出
@Slf4j
class LogTest {
@Test
void testLog() {
String testInfo = "Free flying flowers are like dreams";
log.info("The test info is :{}", testInfo);
}
}
效果:
springboot部署@Slf4j的方式及引用:
https://blog.csdn.net/cslucifer/article/details/80953400
边栏推荐
- 家居网购项目
- EtherCAT原理概述
- Golang multi graph generation gif
- JS日常开发小技巧(持续更新)
- Learning notes for introduction to C language multithreaded programming
- Pytest -- plug-in writing
- Bilinear upsampling and f.upsample in pytorch_ bilinear
- 后台系统页面左边菜单按钮和右边内容的处理,后台系统页面出现双滚动
- Chapter 03_ User and authority management
- Pyramid Scene Parsing Network【PSPNet】论文阅读
猜你喜欢
Hal library setting STM32 interrupt
Stop saying that you can't solve the "cross domain" problem
[深度学习]激活函数(Sigmoid等)、前向传播、反向传播和梯度优化;optimizer.zero_grad(), loss.backward(), optimizer.step()的作用及原理
FCN全卷积网络理解及代码实现(来自pytorch官方实现)
文件上传下载
Test function in pychram
Asgnet paper and code interpretation 2
C # realize solving the shortest path of unauthorized graph based on breadth first BFS -- complete program display
Chapter 03_ User and authority management
还在浪费脑细胞自学吗,这份面试笔记绝对是C站天花板
随机推荐
衡量两个向量相似度的方法:余弦相似度、pytorch 求余弦相似度:torch.nn.CosineSimilarity(dim=1, eps=1e-08)
The best learning method in the world: Feynman learning method
Subnet division (10)
About the application of MySQL
Valid brackets (force deduction 20)
不用加减乘除实现加法
Feign远程调用和Getaway网关
Edge drawing: a combined real-time edge and segment detector
Pyramid Scene Parsing Network【PSPNet】论文阅读
实现pow(x,n)函数
数据库中COMMENT关键字的使用
Pyramid scene parsing network [pspnet] thesis reading
8 pits of redis distributed lock
pytorch训练深度学习网络设置cuda指定的GPU可见
监听器 Listener
Golang多图生成gif
The 'mental (tiring) process' of building kubernetes/kubesphere environment with kubekey
Learning notes for introduction to C language multithreaded programming
Subnet division and subnet summary
网页不能右键 F12 查看源代码解决方案