加载中
IDEA远程Debug

1.远程程序开启debug配置 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 如果是tomcat运行的程序,可以在/bin/catalina.sh 文件(在开头位置即可)加入配置参数 expo...

2019/08/22 17:08
407
Linux如何查看端口状态

netstat命令各个参数说明如下:   -t : 指明显示TCP端口   -u : 指明显示UDP端口   -l : 仅显示监听套接字(所谓套接字就是使应用程序能够读写与收发通讯协议(protocol)与资料的程序)  ...

2019/07/28 12:34
1.8K
Spring Security Architecture

This guide is a primer for Spring Security, offering insight into the design and basic building blocks of the framework. We only cover the very basics of application security bu...

2019/03/15 10:12
282
StringRedisTemplate工具类

package com.example.demo.util; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.connection.DataType; import org.springframewo...

2019/03/10 15:02
4.2K
使用P6Spy监控你的Spring boot数据库操作

引言 最近换了号称最快的HikariDataSource,由于没有了SQL监控,加之于Mybaits默认输出日志之拙计。遂用此物,与之相仿还有log4jdbc,比较活跃度后选择了P6Spy。 步骤 具体步骤比较简单,这里...

2019/03/10 12:08
10.1W
presto函数

CASE CASE expression WHEN value THEN result [ WHEN ... ] [ ELSE result ] END SELECT a, CASE a WHEN 1 THEN 'one' WHEN 2 THEN 'two' EL......

2019/01/24 14:33
4K
Presto

将时间戳转字符串 format_datetime(from_unixtime(time / 1000), 'yyyy-MM-dd HH:mm:ss') 多多使用WITH语句 使用Presto分析统计数据时,可考虑把多次查询合并为一次查询,用Presto提供的子查...

2019/01/24 11:13
1.6K
UML中 的各种符号含义

Class Notation A class notation consists of three parts: Class Name The name of the class appears in the first partition. Class Attributes Attributes are shown in the second par...

2018/08/19 00:59
1.3K
Java并发处理规约

Rule 1. 【强制】创建线程或线程池时请指定有意义的线程名称,方便出错时回溯 1)创建单条线程时直接指定线程名称 Thread t = new Thread(); t.setName("cleanup-thread"); 2) 线程池则使用...

2018/08/18 21:06
283
Netty自己实现的ThreadLocalRandom

首先看下jdk中的Random类的核心方法 protected int next(int bits) { long oldseed, nextseed; AtomicLong seed = this.seed; do { oldseed = seed.get(); ......

2018/08/18 14:18
322
Netty之Recycler实现对象池

Recycler用来实现对象池,其中对应堆内存和直接内存的池化实现分别是PooledHeapByteBuf和PooledDirectByteBuf。Recycler主要提供了3个方法: get():获取一个对象。 recycle(T, Handle):回收一...

2018/08/17 14:40
2.1K
Spring Security认证过程

Spring Security是一个能够为基于Spring的企业应用系统提供声明式的安全访问控制解决方案的安全框架。它提供了一组可以在Spring应用上下文中配置的Bean,充分利用了Spring IoC,DI(控制反转...

2018/06/24 21:56
387
Spring Security认证和授权时序图

Spring Security认证时序图 Spring Security授权时序图 如果有这样的时序图,看源码就是顺藤摸瓜了。如果没有这样的时序图,那么看源码会吃力一些,看完之后可以用个时序图来总结....

2018/06/24 21:10
4.7K

没有更多内容

加载失败,请刷新页面

返回顶部
顶部