Tagged articles
13 articles
Page 1 of 1
macrozheng
macrozheng
Jul 25, 2025 · Backend Development

Generate PDFs in Java with iText: From Hello World to Dynamic Templates

This tutorial explains how to generate PDF files in Java using the iText library, covering dependency setup, a simple "Hello World" PDF example, converting complex HTML pages to PDF, and dynamic content insertion with Freemarker templates.

FreemarkerHTML to PDFbackend-development
0 likes · 14 min read
Generate PDFs in Java with iText: From Hello World to Dynamic Templates
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Apr 10, 2025 · Backend Development

Hands‑On Guide: Build Your Own Code Generator (Can You Keep Up?)

This article walks through why repetitive CRUD code wastes development time, reviews existing generators like MyBatis‑Generator and MyBatis‑Plus, and then demonstrates step‑by‑step how to create a custom Java code generator using Freemarker, Maven, and SpringBoot, complete with template and demo code.

FreemarkerMyBatisSpringBoot
0 likes · 11 min read
Hands‑On Guide: Build Your Own Code Generator (Can You Keep Up?)
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Feb 25, 2025 · Backend Development

Build a Code Generator from Scratch: Boost Development Efficiency 10×

This article walks through creating a fully automated Spring Boot and MyBatis code generator using Freemarker templates, detailing each step from extracting table metadata to generating DAO, service, controller, and entity classes, and shows how a single-table CRUD can be produced in seconds.

FreemarkerMyBatisSpring Boot
0 likes · 25 min read
Build a Code Generator from Scratch: Boost Development Efficiency 10×
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Feb 14, 2025 · Backend Development

How to Generate PDF Files in Java: A Complete Step‑by‑Step Tutorial

This guide walks through the need for PDF generation in business scenarios, introduces the iText library (both iText5 and iText7), shows how to add Maven dependencies, provides a minimal “Hello World” PDF example, then details converting HTML (with CSS, images, and Freemarker variables) into PDF, and discusses when custom adaptation is required.

FreemarkerHTML to PDFPDF
0 likes · 13 min read
How to Generate PDF Files in Java: A Complete Step‑by‑Step Tutorial
Dada Group Technology
Dada Group Technology
Nov 28, 2022 · Information Security

Analyzing Java Template Engine Injection Vulnerabilities and Building Automated Detection Capabilities

This article examines injection vulnerabilities in Java template engines Velocity, FreeMarker, and Thymeleaf, details payload extraction, demonstrates how to generate automated detection rules and security operation capabilities, and discusses future directions for comprehensive attack‑chain analysis.

FreemarkerThymeleafjava
0 likes · 12 min read
Analyzing Java Template Engine Injection Vulnerabilities and Building Automated Detection Capabilities
macrozheng
macrozheng
May 10, 2021 · Backend Development

How to Build Your Own Spring Boot Scaffolding Tool with FreeMarker

This article explains why and when to create custom scaffolding for large-scale Java projects, compares popular options like Spring Initializr and Aliyun, and provides a step‑by‑step guide—including project structure, FreeMarker templates, and code generation classes—to build your own Spring Boot scaffolding tool.

Freemarkerscaffolding
0 likes · 16 min read
How to Build Your Own Spring Boot Scaffolding Tool with FreeMarker
Programmer DD
Programmer DD
Jan 7, 2021 · Information Security

Explore Server‑Side Template Injection Labs: Tornado, Velocity & Freemarker

This article continues a series on server‑side template injection by presenting four hands‑on labs covering Tornado (Python), Velocity (Java), Freemarker (Java) and a Freemarker sandbox‑escape, detailing syntax basics, attack surfaces, exploit payloads, defensive measures, and step‑by‑step exercises.

Freemarkerpayloadserver-side
0 likes · 13 min read
Explore Server‑Side Template Injection Labs: Tornado, Velocity & Freemarker
Programmer DD
Programmer DD
Jul 19, 2020 · Backend Development

How to Build a Java Code Generator with Freemarker Templates

This article explains the scenarios, workflow, and implementation details of creating a Java code generator using Freemarker templates, including template design, data binding, and sample code that produces POJO classes automatically.

FreemarkerTemplate Engineautomation
0 likes · 9 min read
How to Build a Java Code Generator with Freemarker Templates
Architect's Tech Stack
Architect's Tech Stack
Dec 17, 2019 · Backend Development

Spring Boot Template Engine Hot Deployment Techniques

This article explains how to disable template caching in Spring Boot for Thymeleaf, FreeMarker, Groovy, and Velocity, and compares several hot‑deployment methods including Debug mode, spring-boot-devtools, Spring Loaded, and JRebel, providing configuration snippets and practical guidance.

DevToolsFreemarkerHot Deployment
0 likes · 3 min read
Spring Boot Template Engine Hot Deployment Techniques