Target | |||||
---|---|---|---|---|---|
KEY @ANNOTATIONS | CONFIG | TYPE | METHOD | FIELD | PARAMETER |
@EnableAutoConfiguration | x | x | |||
@EnableJpaAuditing | x | x | |||
@EnableJpaRepositories | x | x | |||
@EntityScan | x | x | |||
@ComponentScan | x | x | |||
@Configuration | x | x | |||
@EnableSwagger2 | x | x | |||
@Entity | x | ||||
@Table | x | ||||
@RestController | x | ||||
@RequestMapping | x | ||||
@Api | x | ||||
@NoRepositoryBean | x | ||||
@Transactional | x | x | |||
@Autowired | x | ||||
@ApiOperation | x | ||||
@RequestMapping | x | ||||
@Id | x | ||||
@GeneratedValue | x | ||||
@Column | x | ||||
@NaturalId | x | ||||
@NotEmpty | x | ||||
@Size | x | ||||
@OneToOne | x | x | |||
@JoinColumn | x | x | |||
@OnDelete | x | ||||
@ManyToMany | x | x | |||
@ManyToOne | x | x | |||
@OneToMany | x | x | |||
@JoinTable | x | x | |||
@Valid | x | ||||
@PathVariable | x | ||||
@RequestBody | x | ||||
@ResponseBody | x |
from: https://dzone.com/articles/key-java-annotations-to-build-full-spring-boot-res