unSafe.sh - 不安全
我的收藏
今日热榜
公众号文章
导航
Github CVE
Github Tools
编码/解码
文件传输
Twitter Bot
Telegram Bot
Search
Rss
黑夜模式
Manually Analyze JFR Files to Find Optimization Targets
A systematic guide to reading Java Flight Recorder dumps and turning the data into faster startup...
2026-8-2 20:57:29 | 阅读: 19 |
收藏
|
GT's Blog - blog.gtiwari333.com
jfr
recording
dimension
idle
cds
Building a Dual-Mode Monolith/Microservices System with Spring Boot - One Codebase, Two Topologies
How to build a single codebase that deploys as either a monolith or independent microservices — an...
2026-8-2 18:58:2 | 阅读: 21 |
收藏
|
GT's Blog - blog.gtiwari333.com
monolith
sku
quantity
dual
Spring Boot - update response of every API using ResponseBodyAdvice
文章介绍了在Spring Boot应用中使用@ControllerAdvice结合ResponseBodyAdvice来统一处理响应体的方法。通过自定义的ObjectResponseAdvice类,在全局范围内将原始响应包装到包含额外信息(如时间戳、跟踪ID和状态码)的JSON对象中。这种方法简化了代码维护,并支持多种响应类型(如字符串、整数、Map和自定义对象),同时确保与现有返回ResponseObject的方法兼容。...
2025-3-11 01:5:0 | 阅读: 10 |
收藏
|
GT's Blog - blog.gtiwari333.com
spanid
traceid
tracer
Run a task in a different interval during weekend using Spring Scheduler and Custom Trigger
文章介绍了一种在周末使用不同时间间隔运行任务的方法。通过自定义Spring任务调度器和实现Trigger接口,可以根据业务逻辑动态调整任务执行频率,在周末改为每15分钟运行一次。...
2025-2-27 17:44:0 | 阅读: 9 |
收藏
|
GT's Blog - blog.gtiwari333.com
weekend
dayofweek
duration
Append a file into existing ZIP using Java
该Java代码读取输入文件`in.zip`,将其中的`abc.txt`文件内容进行修改(替换字符串并添加当前时间),并将修改后的内容与原ZIP文件的其他内容一起写入输出文件`out.zip`。...
2025-2-27 17:15:0 | 阅读: 13 |
收藏
|
GT's Blog - blog.gtiwari333.com
entryin
zos
zipfile
Spring Boot - get Trace and Span ID programmatically
这篇文章介绍了在Spring Boot中如何通过编程方式获取Trace ID和Span ID。通过自动装配Tracer并使用currentSpan()方法获取当前Span对象,可以轻松获得traceId和spanId以用于跟踪和调试。...
2025-2-27 17:8:0 | 阅读: 10 |
收藏
|
GT's Blog - blog.gtiwari333.com
spanid
tracer
traceid
tips
8 puzzle solver using A* algorithm
8-puzzle is a very interesting and a well known problem in the field of Artificial Intelligence...
2024-6-24 06:26:0 | 阅读: 13 |
收藏
|
GT's Blog - blog.gtiwari333.com
puzzle
tentative
openset
tile
blank
JSP basics - Java Server Pages
The JSP - Java Server PagesJSP extension of the servlet technology which offers both scripting (...
2024-6-24 06:24:0 | 阅读: 11 |
收藏
|
GT's Blog - blog.gtiwari333.com
directives
directive
iserrorpage
getinstance
How to reset “Replace Toner” warning on Brother MFC-L2710DW Printer
How to reset “Replace Toner” warning on Brother MFC-L2710DW PrinterHow to reset “Replace To...
2023-7-10 03:25:0 | 阅读: 19 |
收藏
|
GT's Blog - blog.gtiwari333.com
toner
mfc
printer
tnr
arrow
Java PDF to Image Conversion using PDFBox
Here are few snippets of code that you can use to convert a PDF file to images eg: tiff, png, mult...
2023-4-24 03:1:0 | 阅读: 32 |
收藏
|
GT's Blog - blog.gtiwari333.com
pdfrenderer
bim
imagetype
dpi
imageio
KeyCloak docker-compose import realm file
Example of docker-compose for keycloak 18 with ability to import a realm file:It assumes the realm...
2022-7-17 02:55:0 | 阅读: 293 |
收藏
|
blog.gtiwari333.com
keycloak
realm
assumes
quay
8082
Kafka - a working docker-compose
Here's a working docker-compose that runs zookeeper, kafka and kafka-ui in same network.version: '...
2021-12-2 08:59:0 | 阅读: 85 |
收藏
|
blog.gtiwari333.com
zookeeper
9093
rmoff
9092
2181
git reset/revert to previous commit
Sometimes we "accidentally" merge something that's not ready for release/qa and need to rollback/...
2021-12-2 08:57:0 | 阅读: 18 |
收藏
|
blog.gtiwari333.com
uncommitted
cherry
qa
rollback
revert
How to make integration tests faster without @DirtiesContext
If your only excuse to use @DirtiesContext is to re-initialize database between tests, then this b...
2021-7-17 08:10:0 | 阅读: 27 |
收藏
|
blog.gtiwari333.com
truncate
em
referential
JPA/Hibernate get find all Table and Column metadata
How to use Hibernate Metadata to find All columns and tablesGetting the Hibernate's Metadata objec...
2021-7-17 06:49:0 | 阅读: 19 |
收藏
|
blog.gtiwari333.com
hibernate
integrator
database
spi
SpringFox Swagger with Groovy - fixing slow startup / heap space error
Story of how we reduced app startup time by 20x and heap usage by 7xFew months ago, we started dev...
2021-7-8 11:44:0 | 阅读: 42 |
收藏
|
blog.gtiwari333.com
groupid
artifactid
var1
var2
expand
GIT write useful commit messages
What's harder than choosing a variable name? IMO its composing a perfect code comment and commit m...
2021-7-3 02:12:0 | 阅读: 18 |
收藏
|
blog.gtiwari333.com
dialog
jira
employer
developer
choosing
Spring Boot - shutdown and restart application programmatically
Today we will be discussing how to shutdown and restart a Spring application programmatically.1) N...
2021-4-19 00:54:0 | 阅读: 25 |
收藏
|
blog.gtiwari333.com
appctx
getmapping
Read Request parameter String from URL in Spring/HttpServlet
Read entire query string(request parameter) in Spring Boot/HttpServletIn Spring Boot and other Jav...
2021-3-2 01:57:0 | 阅读: 22 |
收藏
|
blog.gtiwari333.com
qs
nepal
ganesh
GIT delete merged branches
How to delete merged branches from local copy:When you work on a project for a while, there is a g...
2021-2-23 02:6:0 | 阅读: 23 |
收藏
|
blog.gtiwari333.com
merged
projx
egrep
remote
xargs
Previous
1
2
3
4
5
6
7
8
Next