annotation-order

Installation
SKILL.md

Annotation order

Overview

This document defines standard ordering for annotations in Spring applications. Framework annotations come first, then Lombok.

Key Principle: Spring/JPA first, Lombok last. Core framework annotations before configuration annotations.

Priority Category Examples
1st Core Framework @Entity, @Service, @RestController
2nd Configuration @Table, @RequestMapping, @Transactional
3rd Validation/Constraints @NotNull, @Size, @Valid
4th Lombok @Builder, @NoArgsConstructor, @Getter, @ToString

Class-level annotations

Installs
1
First Seen
Apr 10, 2026