
Java
文章平均质量分 81
ppdouble
这个作者很懒,什么都没留下…
展开
-
Jwt 如何在 springboot 项目中进行接口访问鉴权
Jwt 如何在 springboot 项目中进行接口进行访问鉴权原创 2023-12-20 17:43:20 · 403 阅读 · 0 评论 -
在Springboot项目中使用Quartz执行定时任务
在Springboot项目中使用Quartz执行定时任务原创 2023-12-18 16:31:28 · 239 阅读 · 0 评论 -
RestTemplate 使用代理的几种方式
RestTemplate 使用代理的几种方式原创 2023-11-29 13:40:58 · 2682 阅读 · 0 评论 -
envoy 动态配置 lds-cds-grpc 详解
1. 一个容器包含 envoy 作为前端代理2. 两个含有 envoy 作为 sidecar 使用的web服务器容器3. 一个 control plane 容器原创 2022-10-27 02:55:12 · 1243 阅读 · 0 评论 -
IDEA 使用 maven 本地仓库
使用maven本地仓库原创 2022-10-25 14:54:58 · 1015 阅读 · 0 评论 -
envoy 文档动态配置示例 Dynamic configuration (control plane) 解释
Dynamic configuration (control plane) :对于envoy 使用服务器实现动态配置,需要开发相应的响应程序,文档里提到使用 go 语言开发的 control plane 作为服务器,对 xds API 请求动态配置进行响应。原创 2022-10-23 03:02:14 · 1039 阅读 · 0 评论 -
kafka 3.1.1 cluster 三个结点 docker-compose 部署
bitnami kafka 3.1.1 三个结点docker 集群;docker compose;使用 internal external listener 兼听器原创 2022-06-15 00:59:47 · 1437 阅读 · 0 评论 -
zookeeper 3.8.0 cluster docker-compose 部署
zookeeper 3.8.0 cluster docker-compose 安装原创 2022-05-22 14:41:34 · 1275 阅读 · 0 评论 -
docker-compose redis 6.2 cluster (二) 随机分配三主三从
docker-compose 创建 redis 6.2 集群原创 2022-05-14 14:14:20 · 680 阅读 · 0 评论 -
docker redis 6.2 cluster (一) 随机分配三主三从
使用 docker 安装 redis 集群,redis 6.2原创 2022-05-08 09:04:07 · 805 阅读 · 0 评论 -
如何发现程序中的错误
编译时错误使用日志框架或者自己手动写逻辑错误注意编码习惯使用异常处理机制设计测试用例原创 2021-07-25 01:16:45 · 2214 阅读 · 0 评论 -
字符串处理笔记-字符串连接
c++用 + 号str1 + str2参照:http://www.cnblogs.com/Steven-Love-Arlene/p/4499459.htmljavapythonshell原创 2016-02-12 01:26:00 · 735 阅读 · 0 评论 -
判断表达式防止短路
第一种情况if (expression1 && expression2) { // do sth}当expression1为假时,expression2不执行。如果expressions2中包含expressions1中的变量,expression1中的变量值不影响expression2当expression1为真时,expression2执行。如果express原创 2013-10-10 22:59:54 · 751 阅读 · 0 评论 -
同时启动多个tomcat
server.xml- --> - - --> --> --> --> - --> - - -->转载 2013-10-16 16:39:59 · 841 阅读 · 0 评论 -
获取类型类名String.class.getName()
public String getName()Returns the name of the entity (class, interface, array class, primitive type, or void) represented by thisClass object, as a String. If this class object represents a ref原创 2013-11-22 15:01:51 · 4107 阅读 · 0 评论 -
Java字符串处理笔记
split("\\|")使用 | 分割字符串需要转义原创 2013-12-12 16:34:52 · 706 阅读 · 0 评论 -
Java发送http请求
最常用的Http请求无非是get和post,get请求可以获取静态页面,也可以把参数放在URL字串后面,传递给servlet。post与get的不同之处在于post的参数不是放在URL字串里面,而是放在http请求的正文内。 在Java中可以使用HttpURLConnection发起这两种请求,了解此类,对于了解soap,和编写servlet的自动测试代码都有很大的帮助。 下面的代码简单描述了如何转载 2014-03-27 15:47:39 · 7473 阅读 · 1 评论 -
Java_Annotation@符号
http://docs.oracle.com/javase/tutorial/java/annotations/index.htmlhttp://docs.oracle.com/javase/tutorial/java/annotations/declaring.htmlhttp://docs.oracle.com/javase/tutorial/java/annotations/转载 2014-04-25 11:35:37 · 832 阅读 · 0 评论 -
字符串处理笔记-查找指定字符在字符串中的位置
Python查找指定字符的位置index 和 findhttp://stackoverflow.com/questions/2294493/how-to-get-the-position-of-a-character-in-python原创 2014-06-24 16:29:26 · 1248 阅读 · 0 评论 -
字符串处理笔记-获得字符串长度
Shell获得str的长度${#str} 从pos开始截取l个,不包含pos位置${str:pos:l}从pos开始截取l个字符,包含pos位置expr substr "$str" 2 $l忽略特殊字符使用 ' 'rm -rf 'fo o' 忽略了空格原创 2014-06-26 13:57:10 · 772 阅读 · 0 评论 -
字符串处理笔记-截取字符串
PythonWindows 7>>> s="中国路13号弄">>> s.find("号")8MAC OSX10.9.2>>> s="中国路13号弄">>> s.find("号")11原创 2014-06-24 16:39:13 · 806 阅读 · 0 评论 -
finally_clause_and_return_clause_in_java
The only time finally won't be called is if you call System.exit() or if the JVM crashes first.A try statement with a finally block is executed by first executing thetry block. Then there转载 2013-09-23 11:41:48 · 916 阅读 · 0 评论