Tagged articles
333 articles
Page 4 of 4
Java Captain
Java Captain
Nov 29, 2019 · Backend Development

Designing Unified API Response Wrappers for Java Backend Services

This article explains how to design a standardized JSON response format, define status codes and messages, and implement a global @ResponseResult annotation with interceptors and ResponseBodyAdvice in Java to simplify controller return values and improve error handling.

APIJavaResponse wrapper
0 likes · 7 min read
Designing Unified API Response Wrappers for Java Backend Services
Java Captain
Java Captain
Oct 18, 2019 · Backend Development

Understanding Java Annotations: Types, Benefits, Custom Creation, and Runtime Parsing

This article explains the purpose and advantages of Java annotations, categorizes built‑in, third‑party and custom annotations, describes meta‑annotations, demonstrates how to define and apply custom annotations, and shows how to parse them at runtime using reflection, complete with code examples.

CustomAnnotationJavaMetaAnnotation
0 likes · 9 min read
Understanding Java Annotations: Types, Benefits, Custom Creation, and Runtime Parsing
Java Captain
Java Captain
Oct 14, 2019 · Backend Development

Common Spring Boot Annotations and Their Usage

This article provides a comprehensive overview of common Spring Boot annotations—including core annotations, MVC‑related annotations, JPA mapping annotations, and global exception handling—along with example Java code illustrating their practical usage in backend development.

JavaSpringBootSpringMVC
0 likes · 8 min read
Common Spring Boot Annotations and Their Usage
Java Captain
Java Captain
Sep 21, 2019 · Backend Development

SpringBoot Auto-Configuration Principles and Startup Process

This article explains the core concepts of SpringBoot, covering commonly used annotations, the application startup sequence, and the detailed mechanism of auto-configuration, including @SpringBootApplication, @EnableAutoConfiguration, @ConfigurationProperties, and how META-INF/spring.factories files drive automatic bean registration.

JavaSpringBootannotations
0 likes · 16 min read
SpringBoot Auto-Configuration Principles and Startup Process
Programmer DD
Programmer DD
Sep 12, 2019 · Backend Development

Master JSON Serialization in Java: A Deep Dive into Gson

This article walks through why developers should replace FastJson with Gson, explains Gson's core features, demonstrates basic and advanced serialization and deserialization—including handling arrays, collections, generic types, custom serializers, and annotations—while providing complete code examples and best‑practice tips.

DeserializationGsonGsonBuilder
0 likes · 20 min read
Master JSON Serialization in Java: A Deep Dive into Gson
Java Captain
Java Captain
Aug 24, 2019 · Backend Development

Comprehensive Guide to Spring MVC, Spring Bean, and Spring Boot Annotations

This article provides a detailed overview of the most commonly used Spring MVC request‑mapping annotations, Spring Bean stereotypes, dependency‑injection and scope annotations, container configuration annotations such as @Autowired and @Primary, and essential Spring Boot annotations, illustrating each with clear code examples and diagrams.

JavaSpring BootSpring MVC
0 likes · 18 min read
Comprehensive Guide to Spring MVC, Spring Bean, and Spring Boot Annotations
Java Captain
Java Captain
Aug 18, 2019 · Backend Development

Understanding Spring Boot Startup: @SpringBootApplication, Core Annotations, and Auto‑Configuration Process

This article explains the inner workings of a Spring Boot application startup class, detailing the composite @SpringBootApplication annotation, the roles of @Configuration, @ComponentScan, and @EnableAutoConfiguration, and walks through the SpringApplication execution flow and the auto‑configuration mechanism powered by SpringFactoriesLoader.

FrameworkJavaSpringBoot
0 likes · 46 min read
Understanding Spring Boot Startup: @SpringBootApplication, Core Annotations, and Auto‑Configuration Process
Java Backend Technology
Java Backend Technology
Aug 18, 2019 · Backend Development

Mastering Spring Annotations: From @Controller to @CacheEvict

This article provides a comprehensive guide to essential Spring annotations—including @Controller, @RestController, @Service, @Autowired, @RequestMapping, @ModelAttribute, @Cacheable, @CacheEvict, @Resource, @PostConstruct, @PreDestroy, @Repository, @Component, @Scope, @SessionAttributes, @Required and @Qualifier—explaining their purposes, usage patterns, and practical examples with accompanying diagrams.

JavaSpring MVCannotations
0 likes · 9 min read
Mastering Spring Annotations: From @Controller to @CacheEvict
Programmer DD
Programmer DD
Aug 2, 2019 · Backend Development

Top 10 Spring Boot Interview Questions Every Backend Developer Must Know

This article presents the ten most frequently asked Spring Boot interview questions, covering annotations, package exclusion, auto‑configuration control, Actuator features, initializer usage, embedded Tomcat customization, and how to disable the default web server, providing concise answers and code examples for each.

ActuatorEmbedded TomcatJava
0 likes · 8 min read
Top 10 Spring Boot Interview Questions Every Backend Developer Must Know
Java Captain
Java Captain
Jul 5, 2019 · Backend Development

Understanding Spring BeanDefinition: Core Concepts, Interfaces, and Practical Examples

This article explains the fundamental role of Spring's BeanDefinition as the core data structure that records all bean metadata, compares it to real‑world analogies, lists the key BeanDefinition interface methods, demonstrates registration via annotations and @Bean methods, and shows how to inspect bean definitions at runtime.

BeanDefinitionDependencyInjectionJava
0 likes · 11 min read
Understanding Spring BeanDefinition: Core Concepts, Interfaces, and Practical Examples
21CTO
21CTO
May 1, 2019 · Backend Development

How Lombok Transforms Java: Reduce Boilerplate with Simple Annotations

This article explains why Lombok was created to eliminate repetitive Java code, shows how to add the Maven dependency, configure IDE support, describes its annotation‑processing mechanism, and demonstrates the most common Lombok annotations with before‑and‑after code examples.

Code GenerationIDEJava
0 likes · 8 min read
How Lombok Transforms Java: Reduce Boilerplate with Simple Annotations
Senior Brother's Insights
Senior Brother's Insights
Apr 6, 2019 · Backend Development

Understanding Spring Boot’s Main Class and Key Annotations

This article explains how Spring Boot’s automatically generated Application class serves as the entry point, details the @SpringBootApplication annotation and its composed annotations, and shows how to customize component scanning and disable unwanted auto‑configurations using @ComponentScan and @EnableAutoConfiguration with practical code examples.

BackendJavaSpringBoot
0 likes · 6 min read
Understanding Spring Boot’s Main Class and Key Annotations
Java Backend Technology
Java Backend Technology
Jan 27, 2019 · Backend Development

Unveiling SpringBoot’s Hidden Mechanics: From HelloWorld to Custom ClassLoaders

This article dives deep into SpringBoot’s inner workings, tracing a simple HelloWorld application from its main method through the startup call stack, FatJar packaging, custom ClassLoader behavior, and automatic controller registration via annotations, revealing why the framework feels both lightweight and monstrously complex.

FatJarJavaSpringBoot
0 likes · 9 min read
Unveiling SpringBoot’s Hidden Mechanics: From HelloWorld to Custom ClassLoaders
Programmer DD
Programmer DD
Jan 7, 2019 · Backend Development

How to Set Default Values in Lombok’s @Builder – A Complete Guide

This tutorial explains how to provide default values for fields when using Lombok's @Builder pattern in Java, covering Maven setup, plain POJO definition, Lombok annotations, Builder.Default, custom builder class names, the toBuilder feature, and the trade‑offs of each approach.

BuilderDefault ValuesJava
0 likes · 6 min read
How to Set Default Values in Lombok’s @Builder – A Complete Guide
Java Captain
Java Captain
Dec 30, 2018 · Backend Development

Using MyBatis3 Annotations to Replace XML Configuration: A Comprehensive Guide

This article provides a step‑by‑step tutorial on using MyBatis3 annotation‑based CRUD, mapping, and provider annotations to replace XML configuration in a Spring Boot project, covering basic annotations, result mapping, dynamic SQL, Maven dependencies, configuration files, entity classes, database scripts, controller code, and testing procedures.

CRUDJavaMyBatis
0 likes · 11 min read
Using MyBatis3 Annotations to Replace XML Configuration: A Comprehensive Guide
Xianyu Technology
Xianyu Technology
Dec 14, 2018 · Mobile Development

How to Build a Lightweight Flutter Router with Dart Annotations

This article explains how to replace cumbersome if‑else or manual map‑based routing in Flutter with a lightweight, annotation‑driven solution that automatically generates a page‑to‑URL mapping at compile time, using Dart's source_gen, build, and analyser packages.

Code GenerationDARTFlutter
0 likes · 10 min read
How to Build a Lightweight Flutter Router with Dart Annotations
Java Captain
Java Captain
Dec 3, 2018 · Backend Development

Common Spring Framework Annotations and Their Usage

This article explains the purpose and usage of frequently used Spring annotations such as @Controller, @RestController, @Service, @Autowired, @RequestMapping, @RequestParam, @ModelAttribute, @Cacheable, @CacheEvict, @Resource, @PostConstruct, @PreDestroy, @Repository, @Component, @Scope, @SessionAttributes, and @Qualifier, providing code examples and practical notes for Java backend development.

JavaSpring MVCannotations
0 likes · 12 min read
Common Spring Framework Annotations and Their Usage
Java Captain
Java Captain
Oct 3, 2018 · Fundamentals

Understanding Java Annotations and Meta‑Annotations: Principles, Built‑in Annotations, and Custom Annotation Creation

This article explains the purpose and mechanics of Java annotations introduced in JDK 5, describes the five standard annotations, details the four meta‑annotations (@Target, @Retention, @Inherited, @Documented), and provides step‑by‑step guidance on defining, using, and processing custom annotations with reflection.

Custom AnnotationJavaMeta-annotations
0 likes · 13 min read
Understanding Java Annotations and Meta‑Annotations: Principles, Built‑in Annotations, and Custom Annotation Creation
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 13, 2018 · Backend Development

What Are Annotations in Java? Definition, Uses, Meta‑Annotations, and Custom Annotation Example

This article explains Java annotations—what they are, how they work, their common uses such as documentation generation and compile‑time checks, the four built‑in meta‑annotations, standard annotations like @Override, and how to create and apply custom annotations with a complete code example.

Custom AnnotationJavaMeta-annotations
0 likes · 7 min read
What Are Annotations in Java? Definition, Uses, Meta‑Annotations, and Custom Annotation Example
Java Captain
Java Captain
Jan 13, 2018 · Backend Development

Understanding Spring MVC Annotations: @RequestMapping, @PathVariable, @RequestParam, @CookieValue and RESTful Request Handling

This article explains how Spring MVC uses annotations such as @RequestMapping, @PathVariable, @RequestParam and @CookieValue to map URLs, retrieve parameters, implement RESTful CRUD operations via hidden method filters, and provides complete code examples for each scenario.

Backend DevelopmentRequestMappingSpring MVC
0 likes · 10 min read
Understanding Spring MVC Annotations: @RequestMapping, @PathVariable, @RequestParam, @CookieValue and RESTful Request Handling
Qunar Tech Salon
Qunar Tech Salon
Sep 7, 2017 · Backend Development

Understanding Caching in Java with Spring Cache, Ehcache, and Redis

This article explains the concept of caching in Java, the importance of reducing database I/O, introduces Spring Cache annotations and their limitations, demonstrates conditional caching with code examples, and provides configuration details for integrating Ehcache and Redis as cache providers.

EhcacheJavaSpring Cache
0 likes · 10 min read
Understanding Caching in Java with Spring Cache, Ehcache, and Redis
Java Captain
Java Captain
Sep 5, 2017 · Fundamentals

Java Fundamentals: Streams, Exceptions, Annotations, Class Loading, Keywords, Multithreading, Thread Pools, and Memory Model

This article provides a comprehensive overview of core Java concepts, including the hierarchy of I/O streams, checked and unchecked exceptions, built‑in and custom annotations, the class‑loader delegation model, important language keywords, multithreading techniques, thread‑pool implementations, and the Java memory model.

ExceptionsStreamsannotations
0 likes · 17 min read
Java Fundamentals: Streams, Exceptions, Annotations, Class Loading, Keywords, Multithreading, Thread Pools, and Memory Model
Qunar Tech Salon
Qunar Tech Salon
Sep 12, 2016 · Mobile Development

Understanding Dagger2 Dependency Injection in Android with Practical Code Examples

This article explains the concepts and practical usage of Dagger2 for compile‑time dependency injection in Android, illustrating why hard‑coded object creation is problematic, how constructor, setter, and interface injection solve these issues, and providing step‑by‑step code samples for modules, components, scopes, and qualifiers.

AndroidDagger2Java
0 likes · 19 min read
Understanding Dagger2 Dependency Injection in Android with Practical Code Examples
Qunar Tech Salon
Qunar Tech Salon
Dec 2, 2014 · Backend Development

Understanding EventBus for In‑Process Event Dispatch in Java

This article explains how EventBus replaces explicit publisher‑subscriber registration for in‑process event dispatch in Java, provides a concise code example, a one‑minute migration guide, details on listeners and producers, a terminology table, and a comprehensive FAQ covering usage, design decisions, and testing considerations.

EventBusIn-ProcessJava
0 likes · 11 min read
Understanding EventBus for In‑Process Event Dispatch in Java