Tagged articles
Thymeleaf
41 articles · Page 1 of 1
This article details the architecture and implementation of a production-grade notification center that abstracts channel differences, uses Thymeleaf for template rendering, employs Channel/Provider abstractions for multi-vendor support, handles async execution via thread pools and message queues, and ensures reliability through persistent task tracking, exponential backoff retries, rate limiting, idempotency, and audit logging.
IdempotencyMessage QueueRetry Pattern
0 likes · 24 min read

This tutorial walks through email protocols, third-party SMTP setup for Feishu and QQ, Spring Boot mail starter configuration, core JavaMailSender/MimeMessage/MimeMessageHelper relationships, and a complete email verification code implementation using Redis for storage and Thymeleaf for HTML templates.
Email VerificationIMAPJavaMailSender
0 likes · 14 min read

This article demonstrates how to use Java enums together with Spring Boot's @ConfigurationProperties to replace hard‑coded strings in application.yml, improving readability, reducing maintenance effort, and enabling flexible configuration of user types displayed via a Thymeleaf front‑end.
ConfigurationPropertiesEnumJava
0 likes · 14 min read

This article walks through creating a SpringBoot‑based electronic document signing and contract system, covering the problem background, project structure, Maven setup, key controller and service code, utility classes, deployment steps, and a step‑by‑step demo of drafting, approval, sealing and signing workflows.
JavaMavenSpringBoot
0 likes · 13 min read

The article explains why running multiple template engines in a Spring Boot application becomes an operational challenge, outlines a four‑layer architecture and routing strategies, provides concrete code for a custom ViewResolver, configuration, observability, deployment, testing and migration steps, and shows how to govern the process safely in production.
FreeMarkerKubernetesSpring Boot
0 likes · 39 min read

This guide shows how to improve Spring Boot configuration management by using Java enums together with @ConfigurationProperties, providing clear, type‑safe settings, reducing magic numbers, and demonstrating a complete example with Maven dependencies, YAML files, a configuration class, controller, and Thymeleaf view.
BackendConfiguration ManagementConfigurationProperties
0 likes · 13 min read

This guide explains how to improve Spring Boot configuration management by defining configuration values as Java enums, mapping them with @ConfigurationProperties, and displaying them via a Thymeleaf front‑end, including Maven dependencies, YAML settings, enum class, config class, controller, and HTML template examples.
ConfigurationPropertiesEnumSpring Boot
0 likes · 11 min read

This guide walks you through configuring Spring Boot for full‑stack internationalization, covering dependency setup, message resource files, application properties, locale resolver and interceptor, controller and service usage, Thymeleaf templates, custom resolvers, testing, and handling static content.
JavaSpring BootThymeleaf
0 likes · 10 min read

This article presents a comprehensive guide to generating PDF documents in Spring Boot 3 applications using iTextpdf and Thymeleaf, covering environment setup, Maven dependencies, data model, HTML template design, controller implementation, and a test case that produces a correctly rendered PDF with external CSS and images.
JavaPDF generationSpring Boot
0 likes · 9 min read

This guide explains how to improve Spring Boot configuration management by mapping external properties to Java enums using @ConfigurationProperties, demonstrating a complete example with Maven dependencies, YAML settings, enum definitions, configuration classes, a controller, and a Thymeleaf view to achieve flexible and readable code.
ConfigurationPropertiesEnumJava
0 likes · 11 min read

After encountering Thymeleaf template parsing failures when packaging a Spring Boot 3.4.3 application as a JAR, the author resolves the issue by configuring the template resolver in Java code, disabling Thymeleaf settings in application.yml, and adjusting ModelAndView paths to omit leading slashes.
ModelAndViewThymeleafbackend-development
0 likes · 3 min read

The article shows how to replace hard‑coded strings in Spring Boot configuration files with type‑safe Java enums, using @ConfigurationProperties to bind YAML values to enum fields, thereby improving readability, maintainability, and eliminating magic numbers, illustrated through a user‑role example with controller and Thymeleaf view.
ConfigurationPropertiesEnumJava
0 likes · 12 min read

This article announces a Spring Boot 3 case collection with 90 permanent examples, then walks through extending Spring Security login to include domain verification by defining a User entity, repository, custom filter, security configuration, Thymeleaf login page, controller, and test endpoint, complete with code snippets and screenshots.
Custom AuthenticationDomain LoginSpring Boot
0 likes · 11 min read

This guide explains how to design and build a privacy‑focused, view‑once image sharing system using Spring Boot, MySQL, Thymeleaf, and optional cloud storage, covering requirements analysis, architecture, environment setup, code implementation, security considerations, performance optimizations, testing, and deployment.
BackendImage BurnMySQL
0 likes · 15 min read


ITPUBOct 24, 2024 · Backend Development
This article recounts five successive performance optimizations applied to a SpringBoot‑Thymeleaf category‑tree API—adding Redis caching, scheduled async refresh jobs, local Caffeine memory cache, gzip compression via Nginx, and Redis data slimming—transforming query latency and scaling QPS from around 100 to over 500.
CaffeineGZIPRedis
0 likes · 10 min read

This article details a step‑by‑step performance improvement journey for a category‑tree query in a SpringBoot‑Thymeleaf system, covering Redis caching, scheduled jobs, local Caffeine cache, Gzip compression, and data slimming with byte‑array storage to resolve latency and large‑key issues.
CachingCaffeineGZIP
0 likes · 8 min read

This article walks through five successive performance optimizations—adding Redis caching, scheduling async updates, introducing a Caffeine local cache, enabling Nginx GZip compression, and compressing Redis data—to dramatically reduce the size and latency of a category‑tree API in a SpringBoot application.
CaffeineGZIPSpringBoot
0 likes · 10 min read

This article details a step‑by‑step performance optimization of a category‑tree query in a SpringBoot‑Thymeleaf e‑commerce system, covering initial Redis caching, periodic job updates, local Caffeine cache, Gzip compression, data slimming, and byte‑level compression to dramatically improve response times and reduce Redis key size.
CachingCaffeineGZIP
0 likes · 9 min read

In this article we walk through five successive optimizations—adding Redis caching, scheduling asynchronous jobs, introducing local Caffeine cache, enabling Nginx GZip compression, and slimming Redis data—to dramatically improve the performance of a SpringBoot‑Thymeleaf classification‑tree query, reducing response size from 1 MB to 100 KB and raising QPS from 100 to over 500.
CachingCaffeineRedis
0 likes · 10 min read

This article explores web pagination across database, backend, and frontend layers, detailing MySQL LIMIT syntax, Java pagination implementations with PageHelper and Spring Data JDBC, and UI approaches using Thymeleaf and Element UI, providing code examples and comparative insights for developers.
Element UIJavaMySQL
0 likes · 9 min read

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.
FreeMarkerJavaSecurity Automation
0 likes · 12 min read

This guide walks through creating a complete SpringBoot permission management system using SpringSecurity, covering database design, Maven setup, entity classes, security configuration, utility methods, dynamic menu loading, Thymeleaf menu rendering, and testing with role‑based access control.
JPARole-Based AccessThymeleaf
0 likes · 22 min read

This article walks through the design, implementation, and optimization of a complete supplier management system built with SpringBoot, Thymeleaf, MyBatis‑Plus, MySQL, and Redis, covering project setup, configuration, core Java code, file upload handling, and caching strategies.
BackendJavaThymeleaf
0 likes · 13 min read

This article details the end‑to‑end development of a supplier management system using SpringBoot, Thymeleaf, Mybatis‑Plus, MySQL and Redis, covering project planning, code implementation, file upload handling, caching optimization, and deployment considerations.
JavaMySQLRedis
0 likes · 11 min read

The article presents a kindergarten management system featuring three user roles, outlines its Spring Boot and Thymeleaf technology stack, details required runtime and database environments, provides step‑by‑step deployment instructions, and includes complete backend controller source code for user, teacher, student, and school management functionalities.
JavaMySQLREST API
0 likes · 19 min read

This article explains how to disable template engine caching and use various hot‑deployment methods—including property settings, Debug mode, spring‑boot‑devtools, Spring Loaded, and JRebel—to achieve real‑time updates of Spring Boot web pages.
DevToolsHot DeploymentTemplate Engine
0 likes · 4 min read

This tutorial walks through creating a Spring Boot project, configuring Maven dependencies, setting up application.yml and properties, defining POJOs, MyBatis mapper XML, service and controller layers, and building simple Thymeleaf login and registration pages, with full code snippets for each step.
JavaMyBatisMySQL
0 likes · 10 min read

Integrating a React front‑end with a Java back‑end required fixing HTTPS‑to‑HTTP CORS errors by serving the React index.html from the backend, switching @RestController to @Controller for sub‑path routing, adding Thymeleaf, using a Chrome redirect plugin and crossorigin tags, and disabling lazy‑loaded asset URLs during local development, highlighting that true front‑end/back‑end separation remains elusive.
BackendCORSJava
0 likes · 5 min read

This tutorial walks through creating a Spring Boot project, configuring Maven dependencies, setting up MySQL with MyBatis, defining entity, mapper, service, and controller layers, and building simple Thymeleaf login and registration pages, culminating in a runnable dynamic authentication demo.
BackendJavaMyBatis
0 likes · 16 min read

This guide walks through cloning the RuoYi‑Process repository, configuring the database and application settings, building the project with Spring Boot, and launching the workflow system at http://localhost:8888.
ActivitiJavaRuoYi
0 likes · 3 min read

This article demonstrates how to integrate the Apache Shiro security framework into a Spring Boot application, covering Maven dependencies, Shiro configuration, custom Realm implementation, login authentication, controller-level access control, and Thymeleaf front‑end button visibility based on roles and permissions.
JavaPermission ManagementSecurity
0 likes · 13 min read

This guide shows how to add Spring Boot DevTools, configure Maven and IntelliJ IDEA, and use both manual and automatic hot‑deployment techniques—including registry tweaks and template cache settings—to achieve instant code changes without restarting the application.
DevToolsHot ReloadIntelliJ IDEA
0 likes · 6 min read

This tutorial demonstrates how to add Baidu's ECharts JavaScript visualization library to a Spring Boot backend, covering project setup, Maven dependencies, controller creation, Thymeleaf template configuration, and rendering a line chart in the browser.
EChartsSpring BootThymeleaf
0 likes · 8 min read

This tutorial explains how to serve static resources, configure Thymeleaf as the template engine, and create a Spring Boot controller that renders HTML pages, including step‑by‑step code examples and configuration tips for customizing template locations and caching.
BackendJavaSpring Boot
0 likes · 10 min read

This article explains how Spring Boot 2.x handles favicons, why the default icon can expose framework details, how to disable it, and provides step‑by‑step instructions and code snippets for adding a custom favicon using Thymeleaf or plain HTML while addressing common caching issues.
Spring BootThymeleafbackend development
0 likes · 5 min read

This tutorial walks through the fundamentals of Thymeleaf, its key features, a side‑by‑side comparison with FreeMarker, and provides a complete Spring Boot example—including Maven dependencies, entity and controller code, template markup, and essential configuration settings—to help developers integrate the template engine quickly and correctly.
JavaMVCSpring Boot
0 likes · 8 min read

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

This tutorial shows how to add iText and XHTMLRenderer dependencies, create a PDF utility class that supports Chinese fonts, configure Maven resources to avoid placeholder conflicts, and resolve Docker build issues, all illustrated with a working demo image.
DockerMavenPDF generation
0 likes · 4 min read

This tutorial explains how to build a WeChat QR‑code login system using Spring‑Boot, Thymeleaf, HttpClient and JSON, covering preparation steps, project configuration, OAuth2 flow, code examples for generating QR pages, handling callbacks, and customizing the login experience.
JavaOAuth2QR Login
0 likes · 10 min read

This tutorial walks through a complete Spring Boot demo that sets up Maven dependencies, creates Thymeleaf front‑end pages (home, login, hello), implements a main Application class, a HomeController, and a WebSecurityConfig to secure the application with in‑memory authentication, illustrating how to protect URLs, configure a custom login page, and enable logout functionality.
JavaSpring BootSpring Security
0 likes · 7 min read

This guide explains how Spring Boot serves static assets from classpath directories, how to configure and access them, and how to render dynamic HTML pages using Thymeleaf—including template locations, sample code, and property customizations for seamless web development.
Spring BootTemplate EngineThymeleaf
0 likes · 7 min read
