E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
LoggerFactory
Excel工具类
publicclassPOIUtil{privatestaticLoggerlogger=
LoggerFactory
.getLogger(POIUtil.class);privatefinalstaticStringxls
陈追风
·
2020-08-24 00:47
HttpIntercaptor
importcom.mmall.util.JsonMapper;importlombok.extern.slf4j.Slf4j;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
MachineLearningAI
·
2020-08-23 23:36
java框架
javaEE
Minio 整合springboot 开发 实现文件上传
4.0.0io.miniominio${minio.version}2.书写一个MinioUtilspublicclassMinioClientUtils{privatestaticfinalLoggerLOGGER=
LoggerFactory
.getLogger
acay4499
·
2020-08-23 23:18
java创建https请求(忽略证书的)
packagecom.hannan.ehu.test.utils;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importjavax.net.ssl
vpk112
·
2020-08-23 22:59
java基础
自定义访问rabbitmq的框架(二)
publicclassRabbitMQHelper{protectedfinalLoggerlogger=
LoggerFactory
.getLogger(RabbitMQHelper.
ljz2016
·
2020-08-23 17:25
MQ
aspose
publicclassRepDocTemplate{//默认没有license,会有水印文字privatebooleanisLicense=false;//初始化日志privatestaticfinalLoggerlog=
LoggerFactory
.getLogger
易轩风楊
·
2020-08-23 17:05
控件
springboot配置线程池-高并发场景
1.编写配置文件packagecom.hbedu.search.hbsearch.utils;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importorg.springframework.context.annotation.Bean
L_小乌鸦
·
2020-08-23 15:19
JAVA
spring
boot
java
封装一套RabbitMQ通用发送和接收类
推荐使用直接发送Bean的方式发送mq消息*/@Component@EnableAsyncpublicclassRabbitMqMessageSender{privatestaticLoggerlogger=
LoggerFactory
.getLogger
临时搬砖
·
2020-08-23 14:38
一些模块
文章目录1.全局异常处理2.自定义异常处理3.日志处理1.全局异常处理出现异常时希望返回自定义的异常界面importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
XuZhu_12138
·
2020-08-23 11:08
Springboot 中使用 SLF4J
,不应该直接调用日志的实现类,而是调用抽象层里面的方法应该给系统里面导入slf4j的jar包和logback的实现jar包importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
天才小熊猫12138584
·
2020-08-23 11:34
Java
Spring
Boot
log
SLF4J
SLF4J
SpringBoot
Java
日志
dubbo项目中使用logback输出日志
log4j:WARNNoappenderscouldbefoundforlogger(com.alibaba.dubbo.common.logger.
LoggerFactory
).log4j:WARNPleaseinitializethelog4jsystemproperly.log4j
FserSuN
·
2020-08-23 09:12
dubbo
spring boot--使用异步请求,提高系统的吞吐量
一、使用Callable来实现@RestControllerpublicclassHelloController{privatestaticfinalLoggerlogger=
LoggerFactory
.getLogger
喝醉的咕咕鸟
·
2020-08-23 09:56
Springboot
Spring Boot错误处理
packagecom.lemon.springboot.controller;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importorg.springf
itlemon_
·
2020-08-23 09:34
Spring
Boot
利用Jackson对Object,Map,List,数组,枚举,日期类等转化为json
ObjectMapper对象,转为对象为json字符串,springside对Jackson的简单封装JsonBinder:publicclassJsonBinder{privatestaticLoggerlogger=
LoggerFactory
.getLogger
sunnywolf1010
·
2020-08-23 07:16
java
常用工具类(三):获取接口参数与统一返回结果
publicclassParamUtils{privatestaticLoggerlogger=
LoggerFactory
.getLogger(ParamUtils.class);privatestaticGsongson
IT媛小燕成长记
·
2020-08-23 02:09
java
常用工具类(二):HttpUtil 发送HTTP请求
常用工具类(二):HttpUtil发送HTTP请求publicclassHttpUtil{privatestaticLoggerlogger=
LoggerFactory
.getLogger(HttpUtil.class
IT媛小燕成长记
·
2020-08-23 02:08
Utils
java
监控Kafka消费者组的消费积压
description获取Kafka指定消费者组堆积的偏移量,并发送邮件预警*/@Slf4jpublicclassKafkaOffsetTools{privatestaticfinalLoggerlogger=
LoggerFactory
.getLogger
曹雪朋
·
2020-08-23 02:43
kafka
Hystrix 从入门到深入——运行时修改动态配置
ComponentpublicclassDynamicConfigSourceimplementsPolledConfigurationSource{privatestaticfinalLoggerlogger=
LoggerFactory
.getLogger
张硕的博客
·
2020-08-23 01:24
Hystrix
SpringBoot集成Zookeeper
:devtools:restart:enabled:true二、Zookeeper配置类:@ConfigurationpublicclasszookeeperConfig{Loggerlogger=
LoggerFactory
.getLogge
已被格式化的叔叔
·
2020-08-22 18:48
zookeeper
解决缓存击穿问题
paramkey缓存key*@paramexpire缓存失效时间*@paramclazz*@paramloadBack缓存为空之后执行的方法*@return*/privateLoggerlogger=
LoggerFactory
.getLogger
当时只道是平常i
·
2020-08-22 18:00
缓存
Java预览视频
packagecom.genius.filemanage.common.utils;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importjavax.servlet.http.HttpServletRequest
Wanted.
·
2020-08-22 17:10
Java
Java
java实现相同属性名称及相似类型的pojo、dto、vo等互转操作
之间的互转1.核心转换工具类,对特别复杂类型不做处理,因为业务场景还未覆盖packagelittlehow.convert;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
·
2020-08-22 16:34
关于解决springboot : java.lang.NoClassDefFoundError: ch/qos/logback/core/joran/spi/JoranException启动报错问题
FailedtoinstantiateSLF4JLoggerFactoryReportedexception:java.lang.NoClassDefFoundError:ch/qos/logback/core/joran/spi/JoranExceptionatorg.slf4j.
LoggerFactory
.bind
wpfeitian
·
2020-08-22 15:29
java
RSA加/解密工具类-RSAUtil
importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importsun.misc.BASE64Decoder;importsun.misc.BASE64Encoder
天~嘿
·
2020-08-22 14:16
工具类
java RSA公钥加密私钥解密
packagecom.alipay;importcn.paypalm.commons.util.Logger;importcn.paypalm.commons.util.
LoggerFactory
;
木子金丰
·
2020-08-22 13:04
RSA算法工具类
packagecom.miao.util;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importjavax.crypto.BadPaddingException
宇默
·
2020-08-22 13:48
后台框架
java MD5加密工具
importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importjava.io.UnsupportedEncodingException;importjava.security.MessageDigest
vvv_110
·
2020-08-22 03:25
笔记
java resources目录下配置文件的读取操作封装类
*/importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importjava.io.
一java丶一咖啡
·
2020-08-22 02:17
PropertiesUtil,读取properties文件
publicclassPropertiesUtil{privatestaticHashMapconfigMap;privatestaticLoggerlogger=
LoggerFactory
.getLogger
qq_28786375
·
2020-08-22 02:44
记录
Java读取配置文件封装方法
publicfinalclassPropertiesUtil{privatestaticfinalLoggerLOGGER=
LoggerFactory
.getLogger(PropertiesUtil.class
science_zhao
·
2020-08-22 00:09
java
springboot监听http请求
ServletRequestListener,并在类上添加@WebListener注解packagecom.zjxt.demo.listener;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
嘿嘿哈嘻
·
2020-08-21 23:02
小技巧
spring boot全局事务配置
org.aspectjaspectjweaver1.8.9packagedemo.demobase.config;importorg.aspectj.lang.annotation.Aspect;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
方栖
·
2020-08-21 21:48
2019年8月
排序入门:排序类的模板&定义一个可排序的数据类型
privatestaticbooleanless(Comparablev,Comparablew){returnv.compareTo(w){privatestaticfinalLoggerlogger=
LoggerFactory
.getLogg
Kedi
·
2020-08-21 16:05
JAVA 实现数据库备份(支持远程数据库)
packagecom.gaxf.paas.task;importcom.gaxf.paas.utils.DateUtil;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
o马蹄o
·
2020-08-21 15:15
java工具类
Elastic Job手动装配以及与spring boot兼容
packagecom.lawu.eshop.order.srv.listener;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importorg.springframework.context.ApplicationContext
你好丶明天
·
2020-08-21 15:09
Elastic
Job
idea中日志信息打印+时间戳:方法分析—UTC2Local类—转正项目解析:例子05
1.日志打印:java开发过程中经常需要打印日志信息,往往会在每个类的第一行加上形如以下代码:protectedstaticfinalLoggerlogger=
LoggerFactory
.getLogger
一只奋斗的小强
·
2020-08-21 15:45
转正项目
jedis模糊删除key
publicclassJedisOperateComponent{privatestaticfinalLoggerLOGGER=
LoggerFactory
.getLogger(JedisOperateComponent.class
chuchenkuang6923
·
2020-08-21 13:26
Zuul 网关使用 filter 过滤,直接返回响应,不让请求访问后续的接口
例子:@ComponentpublicclassMyFilterextendsZuulFilter{privatestaticLoggerlog=
LoggerFactory
.getLogger(MyFilter.class
guile
·
2020-08-21 13:33
java
java中利用jsch执行远程命令,实现sftp
*;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importjava.io.File;importjava.io.FileInputStream
apexlj
·
2020-08-21 13:34
java
Logback日志系统
并且生成的每个日志文件中只包含其本身的内容可以关闭或者打开某几个包的日志,并且可以设置不同的包使用不同的日志级别一、易用性logback的易用性不用多讲,只需要通过下面两行就可以在console中输出日志:LoggerdebugLogger=
LoggerFactory
.getLogger
拾壹北
·
2020-08-21 12:40
AES加密与解密(秘钥)
article/details/808423381packagecom.snsoft.modules.biz.test;23importorg.slf4j.Logger;4importorg.slf4j.
LoggerFactory
weixin_30697239
·
2020-08-21 06:46
OkHttp3Utils工具类
*;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importjava.io.IOException;importjava.util.Ob
Dylan RD
·
2020-08-21 01:22
Tools
Http
okhttp3的封装
*;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importjava.io.IOException;importjava.util.Iterator
tiger_angel
·
2020-08-21 01:21
java工具笔记
SpringMVC(tomcat)文件上传(MultipartFile)遇到的一些问题及解决
提交文件的表单Controller类@Controller@RequestMapping("/course")publicclassUploadFile{privatestaticLoggerlog=
LoggerFactory
.getLogger
wei--heizi
·
2020-08-21 01:11
spring容器中bean的生命周期的测试
的生命周期的图示如下测试用的组件的代码@ComponentpublicclassMyLifeCycleBeanimplementsApplicationContextAware{privateLoggerlogger=
LoggerFactory
.getLogger
liangshui999
·
2020-08-21 00:56
spring
聊聊claudb的DatabaseCleaner
/tonivade/claudb/data/DatabaseCleaner.javapublicclassDatabaseCleaner{privatestaticfinalLoggerLOGGER=
LoggerFactory
.get
codecraft
·
2020-08-20 23:55
redis
聊聊claudb的DatabaseCleaner
/tonivade/claudb/data/DatabaseCleaner.javapublicclassDatabaseCleaner{privatestaticfinalLoggerLOGGER=
LoggerFactory
.get
codecraft
·
2020-08-20 23:07
redis
注解@Slf4j找不到log变量
如果不想每次都写privatefinalLoggerlogger=
LoggerFactory
.getLogger(XXX.class);可以用注解@Slf4j一、在pom文件加入依赖org.projectlomboklombok
bigbear776
·
2020-08-20 23:44
敏感词过滤工具类
/***@authorAdministrator*@create2018/7/31*/publicclassSensitiveWordUtil{privatestaticLoggerlogger=
LoggerFactory
.getLogger
皮皮咕
·
2020-08-20 22:06
SpringBoot 2.x RedisCache 实现自定义过期时间(注解式)
Configuration@EnableCachingpublicclassRedisCacheConfigextendsCachingConfigurerSupport{privatestaticLoggerlogger=
LoggerFactory
.getLogger
勤能补拙1
·
2020-08-20 21:44
redis
上一页
8
9
10
11
12
13
14
15
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他