会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Peter Jones
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
91
下一页
2023年5月17日
浏览器console发送post请求
摘要: const text = ` 18 0.5 18 19 0.5S 19 20 1 20 21 2 21 22 3 22 23 0.25 23 24 1.5 24 25 2.5 25 26 3.5 26 27 5 27 28 10 28 29 20 29 30 A级 30 31 B级 31 32 C级
阅读全文
posted @ 2023-05-17 00:27 Peter.Jones
阅读(366)
评论(0)
推荐(0)
2023年5月12日
请求方式
摘要: 组合1 curl --location --request POST 'http://localhost:82/test/4' \ --header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VySWQiOjEsImFjY291bnQiOiJ
阅读全文
posted @ 2023-05-12 17:31 Peter.Jones
阅读(29)
评论(0)
推荐(0)
2023年5月11日
inputstream转json
摘要: inputstream是一个Java中的输入流,它允许从源读取数据。如果要将inputstream转换为JSON,需要使用相应的解析器,例如GSON或Jackson。以下是使用GSON的示例代码: InputStream inputStream = ...; Gson gson = new Gson
阅读全文
posted @ 2023-05-11 16:53 Peter.Jones
阅读(1331)
评论(0)
推荐(0)
Tomcat源码分析
摘要: Tomcat架构 连接器 Coyote Catalina容器 源码分析 启动流程 Tomcat请求处理流程 Tomcat是通过Mapper组件来完成这个任务。 Mapper组件的功能就是将一个URL定位到一个Servlet. Host容器里配置的域名、Context容器里的web应用路径,以及Wra
阅读全文
posted @ 2023-05-11 01:23 Peter.Jones
阅读(205)
评论(0)
推荐(0)
2023年5月9日
Transformer模型
该文被密码保护。
阅读全文
posted @ 2023-05-09 23:03 Peter.Jones
阅读(0)
评论(0)
推荐(0)
2023年4月23日
ThreadLocal内存泄漏实验
摘要: 创建一个类,其中包含一个ThreadLocal变量,并在其中存储一个大对象。例如,以下示例创建了一个名为MyThreadLocal的类,并在其中使用ThreadLocal变量存储一个大小为10MB的字节数组: public class MyThreadLocal { private ThreadLo
阅读全文
posted @ 2023-04-23 17:55 Peter.Jones
阅读(79)
评论(0)
推荐(0)
json反序列化:Jackson中将下划线和大写字母的JSON键反序列化为驼峰命名的Java对象属性
摘要: new ObjectMapper().readValue(paramJsonStr, xx.class)
阅读全文
posted @ 2023-04-23 17:03 Peter.Jones
阅读(1071)
评论(0)
推荐(0)
json序列化:jackson将驼峰命名转下划线并大写
摘要: Java类 import com.fasterxml.jackson.annotation.JsonProperty; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok
阅读全文
posted @ 2023-04-23 16:57 Peter.Jones
阅读(2922)
评论(0)
推荐(0)
SpringBoot中底层对 /health 的请求是怎么处理的?
摘要: 在 Spring Boot 应用程序中,/health 端点是通过 HealthEndpoint bean 来处理的。当您访问 /health 端点时,Spring Boot 会调用 HealthEndpoint bean 的 health() 方法来检查应用程序的健康状态,并返回相应的响应。 He
阅读全文
posted @ 2023-04-23 11:10 Peter.Jones
阅读(552)
评论(0)
推荐(0)
2023年4月18日
swagger核心类 ApiListingReferenceScanner
摘要: ApiListingReferenceScanner
阅读全文
posted @ 2023-04-18 17:46 Peter.Jones
阅读(54)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
91
下一页
公告