Skip to content

Java Spring Annotations

Java Config

  • @Configuration
  • @ImportResource
  • @ComponentScan
  • @Bean
  • @ConfigurationProperties
  • @EnableAsync
  • @EnableTransactionManagement

Bean Definition

  • @Component/@Repository/@Service
  • @Controller/@RestController
  • @RequestMapping

Injection

  • @Autowired/@Qualifier/@Resource
  • @Value

JPA

  • @Entity
  • @Column
  • @Order
  • @JoinColumn
  • @ManyToMany
  • @ManyToOne
  • @OneToMany
  • @OneToOne
  • @MapsId
  • @MappedSuperclass
  • @Id
  • @GeneratedValue
  • @Embeddable
  • @EmbeddedId

Swagger

  • @Server

  • @ApiResponse

  • @ApiResponses

  • @Contact

  • @Info

  • @License

  • @Tag

  • @Tags

  • @Securityscheme

    Java
    @Securityscheme(name = "bearer-api", scheme = "bearer", type = SecuritySchemeType.HTTP, in = SecuritySchemeIn.HEADER)
    
  • @Schema