Tag

CodeExample

1 views collected around this technical thread.

Selected Java Interview Questions
Selected Java Interview Questions
Sep 20, 2024 · Information Security

Generating and Verifying Java License Files with TrueLicense

This article explains how to generate a Java license using TrueLicense, configure key pairs, create the license file, and integrate verification and installation steps into a Spring Boot application, including detailed code examples and deployment considerations for secure software licensing.

CodeExampleJavaKeyStore
0 likes · 15 min read
Generating and Verifying Java License Files with TrueLicense
Selected Java Interview Questions
Selected Java Interview Questions
Mar 6, 2024 · Backend Development

Encapsulating EasyExcel for Simplified Import/Export in Spring Boot Applications

This article demonstrates how to wrap EasyExcel within a Spring Boot + MyBatis‑Plus project to provide clean, reusable import and export APIs, covering environment setup, annotation usage, controller implementation, core service design, common pitfalls, and solutions for date and template handling.

BackendCodeExampleExcelImportExport
0 likes · 19 min read
Encapsulating EasyExcel for Simplified Import/Export in Spring Boot Applications
Tencent Cloud Developer
Tencent Cloud Developer
Apr 13, 2022 · Backend Development

Using Go 1.18 Multi‑Module Workspaces: Tutorial and Practical Examples

The article walks through Go 1.18’s new multi‑module workspaces, detailing prerequisites and essential commands, then demonstrates creating a simple “hello” module and a shared library, initializing a workspace with go work, and developing both modules concurrently without committing changes.

CodeExampleDependencyManagementGenerics
0 likes · 11 min read
Using Go 1.18 Multi‑Module Workspaces: Tutorial and Practical Examples
Top Architect
Top Architect
Aug 18, 2021 · Backend Development

Understanding Spring BeanUtils.copyProperties: Shallow Copy, Use Cases, and Code Examples

This article explains how Spring's BeanUtils.copyProperties performs a shallow copy, outlines scenarios where it is appropriate, compares it with manual setters, and provides Java code examples illustrating its behavior with parent‑child classes and common pitfalls.

BackendBeanUtilsCodeExample
0 likes · 5 min read
Understanding Spring BeanUtils.copyProperties: Shallow Copy, Use Cases, and Code Examples
Top Architect
Top Architect
Aug 29, 2020 · Backend Development

Replacing If‑Else with Enum‑Based Channel Rules in Java

This article demonstrates how to refactor channel‑specific processing logic in Java by introducing an abstract rule class, concrete channel rule implementations, and an enum that binds channel identifiers to their rule objects, thereby eliminating cumbersome if‑else statements and adhering to the open/closed principle.

BackendCodeExampleDesignPattern
0 likes · 5 min read
Replacing If‑Else with Enum‑Based Channel Rules in Java