Spring FrameWork Annotation

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

 

 

 

參考:

  1. GURU-Spring框架註解
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章