随笔分类 -  Java

1 2 下一页

前后端分离--token过期策略方案1
摘要:https://blog.csdn.net/weixin_38827340/article/details/86287496?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~aggregatepage~first_ran 阅读全文

posted @ 2022-03-09 18:55 rigidwang 阅读(129) 评论(0) 推荐(0)

kafka 发送原理
摘要:ack=0 # 生产者发送消息之后立即返回,不考虑是否发送成功,效率最高; ack=1 # 默认值,生产者发送消息之后,如果首领节点接收成功 则认为发送成功; ack=-1 #生产者发送消息之后,集群所有副本均收到哦消息之后才认为发送成功,效率最低,安全最高; 阅读全文

posted @ 2020-09-10 16:37 rigidwang 阅读(385) 评论(0) 推荐(0)

Broken pipe
摘要:https://www.cnblogs.com/technologykai/p/9766459.html 阅读全文

posted @ 2019-10-10 10:53 rigidwang 阅读(124) 评论(0) 推荐(0)

elasticsearch6.1.3 集成分词器
摘要:# 安装分词器,分词器版本需要和es版本完全匹配,重启es ./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.1.3/elasticse 阅读全文

posted @ 2019-01-15 17:23 rigidwang 阅读(415) 评论(0) 推荐(0)

elk 搭建
摘要:https://www.cnblogs.com/yuhuLin/p/7018858.html # home es_home=/usr/share/elasticsearch # 配置文件 /etc/elasticsearch # 运行文件 /etc/init.d/elasticsearch # 运行 阅读全文

posted @ 2019-01-09 18:01 rigidwang 阅读(94) 评论(0) 推荐(0)

JPA 一对多关联
摘要:@Data @Entity @Table(name = "sys_dictionary_head") public class SysDictHead extends JpaAudit implements Serializable{ @Id @GeneratedValue(generator = 阅读全文

posted @ 2018-08-16 17:35 rigidwang 阅读(152) 评论(0) 推荐(0)

drools API
摘要: 阅读全文

posted @ 2018-05-27 16:36 rigidwang 阅读(130) 评论(0) 推荐(0)

Session管理之超时设置和强制下线
摘要:(一)Session超时时间设置的三种方式: (1)在web.xml中设置session-config 即交互间隔时间最长为2分钟(该处时间单位为分钟),2分钟后session.getAttribute()获取的值为空。 (2)在Tomcat的/conf/web.xml中session-config 阅读全文

posted @ 2018-04-11 17:19 rigidwang 阅读(1628) 评论(0) 推荐(0)

查找Java哪个线程占用CPU 最多
摘要:原文:https://my.oschina.net/javayou/blog/1627245 1. 首先确定进程的 ID ,可以使用 jps -v 或者 top 命令直接查看 2. 查看该进程中哪个线程占用大量 CPU,执行 top -H -p [PID] 结果如下: 可以发现编号为 350xx 的 阅读全文

posted @ 2018-03-02 09:48 rigidwang 阅读(926) 评论(0) 推荐(0)

logger.error 标准用法
摘要:logger.error("error on complete task {}, variables={}", new Object[]{taskId, variables, e}); 阅读全文

posted @ 2018-02-08 14:34 rigidwang 阅读(821) 评论(0) 推荐(0)

IpMacUtil mac 地址
只有注册用户登录后才能阅读该文。

posted @ 2017-12-04 13:35 rigidwang

spring cloud bus rabbitmq
摘要:普通版本架构如下 项目如下: spring-cloud-config-server pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi= 阅读全文

posted @ 2017-08-16 16:49 rigidwang 阅读(418) 评论(0) 推荐(0)

rabbitmq 安装篇
摘要:1.环境 2.安装erlang 和 mq http://www.linuxidc.com/Linux/2016-11/136735.htm 3.配置环境变量 cd ~ vim .bash_profile source .bash_profile 4.启动服务器 rabbitmq-server 5.开 阅读全文

posted @ 2017-08-16 13:14 rigidwang 阅读(129) 评论(0) 推荐(0)

spring cloud eureka
摘要:spring-cloud-eureka-server/pom.xml spring-cloud-eureka-userserver/pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.o 阅读全文

posted @ 2017-08-14 14:29 rigidwang 阅读(227) 评论(0) 推荐(0)

spring cloud config
摘要:1.设置git https://git.oschina.net/rigid/hr.git 上传如下文件: hr_config/my-client.yml hr_config/my-client-uat.yml 2.增加config server 启动之后访问:http://localhost:888 阅读全文

posted @ 2017-08-13 11:57 rigidwang 阅读(222) 评论(0) 推荐(0)

Hibernate 打印参数值
摘要:在 log4j.properties中添加log4j.logger.org.hibernate.SQL=DEBUGlog4j.logger.org.hibernate.type.descriptor.sql.BasicBinder=TRACElog4j.logger.org.hibernate.ty 阅读全文

posted @ 2017-07-04 11:08 rigidwang 阅读(633) 评论(0) 推荐(0)

maven 构件部署至远程仓库
摘要:http://blog.csdn.net/tounaobun/article/details/8959682 阅读全文

posted @ 2017-06-06 14:19 rigidwang 阅读(117) 评论(0) 推荐(0)

maven install 错误
摘要:解决如下: pom.xml 增加: <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-utils</artifactId> <version>3.0.5</version> </dependency> <de 阅读全文

posted @ 2017-06-06 13:36 rigidwang 阅读(174) 评论(0) 推荐(0)

spring mvc 执行过程
摘要: 阅读全文

posted @ 2017-02-23 23:20 rigidwang 阅读(114) 评论(0) 推荐(0)

spring mvc controller 接收参数
摘要:http://www.cnblogs.com/luxh/archive/2013/03/14/2960152.html 阅读全文

posted @ 2017-02-23 17:39 rigidwang 阅读(103) 评论(0) 推荐(0)

1 2 下一页