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
线程池模版
importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importjava.util.concurrent.
zxk1995
·
2020-09-12 05:10
java
使用spring实现定时任务
@ServicepublicclassSchedulerJob{privatestaticfinalLoggerlogger=
LoggerFactory
.getLogger(SchedulerJob.class
zxk1995
·
2020-09-12 05:10
java
ThreadLocal使用模板
classThreadLocalTest{privatestaticfinalLoggerlogger=
LoggerFactory
.getLogger(ThreadLocalTest.class);privatestaticfinalThreadLocalformat
zxk1995
·
2020-09-12 05:10
java
spring boot 给静态变量注入值
下面问题代码中读取不到application.properties配置文件中的配置###问题代码:publicclassBISFrontFileUtil{privatestaticLoggerlogger=
LoggerFactory
.ge
zhayuyao
·
2020-09-12 04:16
spring
boot
java
spring
java HashMap 转Object对象 工具类
importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importjava.lang.reflect.Method;importjava.util.Map
rundreams520
·
2020-09-12 03:06
java
小工具代码
Java加解密之RSA
importorg.apache.commons.codec.binary.Base64;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importjavax.crypto
木子李–刚步入Java的小学生
·
2020-09-11 23:07
Java加解密
java
SHA256Utils
SHA256Utilsimportorg.apache.commons.codec.binary.Hex;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
呆囧囧呆
·
2020-09-11 23:31
flume自定义拦截器,可限制采集速度
publicclassSpeedInterceptorimplementsInterceptor{privatestaticfinalLoggerlogger=
LoggerFactory
.getLogger
蓝桥春水
·
2020-09-11 22:38
flume
HttpClientUtil
publicclassHttpClientUtil{privatestaticLoggerlogger=
LoggerFactory
.getLogger(HttpClientUtil.class);publicstaticStringdoGet
Yumao_
·
2020-09-11 22:34
Java
springboot拦截器中获取配置文件值
packagecom.zhx.web.interceptor;importcom.zhx.util.other.IpUtil;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
weixin_30709061
·
2020-09-11 20:06
SLF4J+Logback 查看加载顺序
–Startpackagedemo04;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importch.qos.logback.classic.LoggerContext
shangboerds
·
2020-09-11 20:10
Logback
SpringBoot 处理全局异常的策略和方法
packagecom.application.exception;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importorg.springframework
谔定靴
·
2020-09-11 20:45
异常
springboot
Junit加载Spring容器作单元测试_添加事务回滚
importorg.junit.Test;importorg.junit.runner.RunWith;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
大诚子
·
2020-09-11 19:19
工作记录
Spring定时任务注解实现定时清空指定文件夹下的文件
,通过注解方式实现定时任务:1importorg.slf4j.Logger;2importorg.slf4j.
LoggerFactory
;3importorg.springframework.scheduling.annotation.EnableScheduling
weixin_30340353
·
2020-09-11 17:24
Redis实现单机加锁解锁与集群加锁解锁
Redis实现单机加锁解锁一、RedisUtil类importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importorg.springframework.beans.factory.annotation.Value
小白葫芦
·
2020-09-11 09:50
Java
java aop实用小案例
spring配置文件packagecom.test;importjava.lang.reflect.Method;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
smile-ling
·
2020-09-11 09:26
健康检查程序
job*@Date:14-10-24*@Time:下午11:10**/publicclassHealthCheckerForDAOJob{privatestaticfinalLoggerlogger=
LoggerFactory
.getLogger
香草依依
·
2020-09-11 06:43
程序健康检查
健康检查
java
spark:sparksql:读取文件/读取hive表/写出到hive/写出到mysql
{SaveMode,SparkSession}importorg.slf4j.
LoggerFactory
/**
花和尚也有春天
·
2020-09-11 05:57
sparkSQL
spark
sparksql
Java发送Http请求——post方式发送Json包体
importcom.alibaba.fastjson.JSON;importcom.alibaba.fastjson.JSONObject;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
IT_熊
·
2020-09-11 00:20
android
服务器管理
【Java】读取配置文件的方式
对Properties对象props进行初始化(指向对应的配置文件fileName-mmall)publicclassPropertiesUtil{privatestaticLoggerlogger=
LoggerFactory
.getLogger
TypantK
·
2020-09-11 00:44
JAVA
拆分、重组XML报文,相关内容存入实体类User中
importorg.apache.commons.lang.StringUtils;importorg.dom4j.io.OutputFormat;importorg.dom4j.io.XMLWriter;importorg.slf4j.
LoggerFactory
Gorden_Zhu
·
2020-09-10 23:14
@Slf4j——log打印日志
声明:如果不想每次都写privatefinalLoggerlogger=
LoggerFactory
.getLogger(当前类名.class);可以用注解@Slf4j(该注解对类和枚举有效);1.使用idea
笨鸟要早飞
·
2020-08-28 09:31
JPA EntityManager 获取session
@ServicepublicclassTestDaoImplimplementsTestDao{privatestaticfinalLoggerlogger=
LoggerFactory
.getLogger
艾比aibi
·
2020-08-26 23:28
Java
java-对象引用和对象本身
importcom.alibaba.fastjson.JSONObject;importjava.util.ArrayList;importjava.util.List;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
青乡之b
·
2020-08-26 23:10
java
java-对象引用和对象本身
importcom.alibaba.fastjson.JSONObject;importjava.util.ArrayList;importjava.util.List;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
青乡之b
·
2020-08-26 23:47
java
error at ::0 formal unbound in pointcut
想好之后就开始写代码啊,代码很快写好了,@Component@AspectpublicclassLogAop{privateLoggerlogger=
LoggerFactory
.getLogger(LogAop.class
秃头哥编程
·
2020-08-26 12:56
Spring
springboot集成weixin4j事遇到的巨坑
importcom.alibaba.fastjson.JSON;importjava.util.concurrent.TimeUnit;importlombok.Data;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
翔子翔子啊
·
2020-08-26 08:06
笔记总结
微信公众号
spring-cloud
+
vue
微服务搭建
Java获取微信公众号的access_token和openId
importcom.pilipig.sos.utils.MyX509TrustManager;importnet.sf.json.JSONObject;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
这个篮球又大又圆
·
2020-08-26 07:54
java
JAVA 静态(static)方法中依赖注入调用Service层(Dao层)
importcom.xxx.demo.entity.HotelUser;importcom.xxx.demo.mapper.HotelUserMapper;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
这个篮球又大又圆
·
2020-08-26 07:54
java
对Mybatis数据库数据查询乱码处理
Java代码publicclassStringTypeHandlerimplementsTypeHandler{privatestaticLoggerlogger=org.slf4j.
LoggerFactory
.getLogger
pluto418
·
2020-08-26 07:02
J2EE
log4j日志信息的打印(含文件)
日志文件的打印以下步骤即可1.引入相关的文件importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;privatestaticLoggerlog=
LoggerFactory
.getLogger
lizhen1114
·
2020-08-25 16:26
java 多线程-quarz
如视频导入文件和路径packagequartz;importjava.util.Date;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importorg.quartz.Job
biezanhan0147
·
2020-08-25 14:16
java
runtime
SpringBoot 定时器任务(注解方式)
packagecom.xxx.xxx.xxx.service.task;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importorg.springframework.beans.factory.annotation.Autowired
进阶的球儿
·
2020-08-25 07:13
springboot实现上传和下载
页面代码文件上传单文件上传多文件上传文件1:文件2:下载1下载23.Controller代码@ControllerpublicclassFileController{privatestaticfinalLoggerlog=
LoggerFactory
坐看云淡风轻
·
2020-08-25 07:01
maven
Spring自定义Bean创建与销毁方式的总结
PostConstruct,@PreDestroy来在bean的创建和销毁阶段进行调用:@ComponentpublicclassAnnotationBean{privatefinalstaticLoggerLOGGER=
LoggerFactory
.getLogger
忧伤的比目鱼
·
2020-08-25 07:26
Spring
SSM-SSM框架下mysql主从分离(动态加载数据源)代码实现及配置
DynamicDataSourceHolder:packagecom.dao.split;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;/**
Fly_Fly_Zhang
·
2020-08-25 06:13
SSM
Java 获取properties配置文件
AuthorWangKun*@Date2019/11/615:36*@Version*/publicclassHttpClientPropertiesUtil{privatestaticLoggerlogger=
LoggerFactory
.getLogger
掐指一算乀缺钱
·
2020-08-25 00:35
工作记录
Java Main参数解析(Args4j)
代码实例如下:定义解析类:importjava.io.Fileimportorg.kohsuke.args4j.Optionimportorg.slf4j.
LoggerFactory
/***数据库报表生成命令行参数定义
weixin_34343000
·
2020-08-24 23:26
Web Spider -- 做一个简单的爬虫 (愿给您启示)
WebSpider一个简单的爬虫代码已托管这里有一个简单的例子publicclassSpiderZhiHuDemo{privateLoggerlogger=
LoggerFactory
.getLogger
yangrd
·
2020-08-24 14:35
jsoup
xpath
java
在同一个类中调用另一个方法没有触发 Spring AOP 的问题
Documentedpublic@interfaceMyMonitor{}@Component@AspectpublicclassMyAopAdviseDefine{privateLoggerlogger=
LoggerFactory
.g
永顺
·
2020-08-24 13:34
java
spring-aop
spring
LongAdder 测试
importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importjava.util.concurrent.CountDownLatch;importjava.util.concurrent.ExecutorService
aan5489
·
2020-08-24 13:32
java
Chapter Zuul系列1-自定义Zuul过滤器
publicclassZuulPreLogFilterextendsZuulFilter{privatestaticfinalLoggerLOGGER=
LoggerFactory
.getLogger(Z
韧卓
·
2020-08-24 12:02
掩码工具
packagecom.jd.jr.cpay.gate.common.util;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;importorg.springframework.beans.BeanUtils
zzjmay
·
2020-08-24 12:18
Java
技术分享
发送邮箱
org.springframework.bootspring-boot-starter-mailpackagecom.wolfedu.cloud.utils;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
明耀
·
2020-08-24 09:10
Spring
Boot
本地批量缓存
publicabstractclassAtomicBatchServiceimplementsSerializable{privatestaticfinallongserialVersionUID=2931723128262800986L;privatestaticfinalLoggerlogger=
LoggerFactory
.getLogger
genhaoyou
·
2020-08-24 08:32
shiro(6)分布式应用鉴权方式之Shiro整合SpringBoot下自定义SessionId
SessionIdGenerator接口的方法publicclassRandomSessionIdGeneratorimplementsSessionIdGenerator{privatestaticfinalLoggerlog=
LoggerFactory
.getLogger
qq_29235677
·
2020-08-24 07:49
shiro
zookeeper的简单例子带你认识zk的API
第二步,上代码:packagemypackage;importorg.apache.zookeeper.data.Stat;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
钓的不是鱼
·
2020-08-24 05:56
zookeeper
zk
zk
zookeeper
Spring-boot中完美实现Post,Get方式的跨域请求
中设置过滤器,直接上代码@ComponentpublicclassCorsFilterimplementsFilter{finalstaticorg.slf4j.Loggerlogger=org.slf4j.
LoggerFactory
.getLogger
雨中漫步的北极熊
·
2020-08-24 04:10
支付宝单笔转账到账户(支付宝账号or银行账号)实现
packagecom.pay.utils;importjava.util.HashMap;importjava.util.UUID;importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
爱我及书
·
2020-08-24 02:20
java基础
阿里开发规范--笔记(二)
importorg.slf4j.Logger;importorg.slf4j.
LoggerFactory
;privatestaticfinalLoggerlogger=
LoggerFactory
.getLo
tmriver
·
2020-08-24 02:49
理论
上一页
7
8
9
10
11
12
13
14
下一页
按字母分类:
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
其他