[JAVA] 어노테이션 정리해보기
| @SpringBootApplication | @ComponentScan, @Configuration, @EnableAutoConfiguration 세개를 합쳐놓은 것(1.2.0 이후 적용) | Class | |
| @EnavleAutoConfiguration | 스프링부트 자동구성하도록 | Class | |
| @EnableCaching | 캐시ON | ||
| @EnableBatchProcessing | 스프링배치 | ||
| @EnableWebSecurity | 스프링 시큐리티 | ||
| @EnableRedisHttpSession | 스프링 세션 | ||
| @nableJpaRepositories | 스프링 JPA | ||
| @Entity | JPA | VO | |
| @Id | JPA | VO | |
| @Value | 프로퍼티 읽어서 변수에 값 세팅할때 | Variables | @Value(“${spring.myip}”) |
| @GeneratedValue | JPA | VO | |
| @Transient | JPA에서 값을 저장하지 않음 | VO | |
| @ResponseBody | JSON으로 응답하도록 | Controller, Method |
최근 댓글