Core Spring Framework Annotations
@Required
@Autowired
@Qualifier
@Configuration
@ComponentScan
@Bean
@Lazy
@Value
Spring Framework Stereotype Annotations
@Component
@Controller
@Service
@Repository
Spring Boot Annotations
@EnableAutoConfiguration
@SpringBootApplication
Spring MVC and REST Annotations
@Controller
@RequestMapping
@CookieValue
@CrossOrigin
Composed @RequestMapping Variants
@GetMapping
@PostMapping
@PutMapping
@PatchMapping
@DeleteMapping
@ExceptionHandler
@InitBinder
@Mappings and @Mapping
@MatrixVariable
@PathVariable
@RequestAttribute
@RequestBody
@RequestHeader
@RequestParam
@RequestPart
@ResponseBody
@ResponseStatus
@ControllerAdvice
@RestController
@RestControllerAdvice
@SessionAttribute
@SessionAttributes
Spring Cloud Annotations
@EnableConfigServer
@EnableEurekaServer
@EnableDiscoveryClient
@EnableCircuitBreaker
@HystrixCommand
Spring Framework DataAccess Annotations
@Transactional
Cache-Based Annotations
@Cacheable
@CachePut
@CacheEvict
@CacheConfig
Task Execution and Scheduling Annotations
@Scheduled
@Async
Spring Framework Testing Annotations
@BootstrapWith
@ContextConfiguration
@WebAppConfiguration
@Timed
@Repeat
@Commit
@RollBack
@DirtiesContext
@BeforeTransaction
@AfterTransaction
@Sql
@SqlConfig
@SqlGroup
@SpringBootTest
@DataJpaTest
@DataMongoTest
@WebMVCTest
@AutoConfigureMockMVC
@MockBean
@JsonTest
@TestPropertySource
參考: