java常用注解
1.Entity层常用注解
@JsonInclude
@Data
@TableName
@Null
@NotNull
@TableId
@NotBlank
@URL
@NotBlank
@NotEmpty
@Min
@Max
@TableField
2.mapper层常用注解
@mapper
@Repository
3.service层常用注解
@Transaction
@service
4.controller层常用注解
@RestController
@Autowired
@Resource
@RequestMapping
@RequestParam
@RequestBody
@PathVariable
@Value
5.exception层常用注解
@RestControllerAdvice
@ExceptionHandler
@Exception
6.自定义注解
@Documented
@Constraint
@Target
@Retention
7.Application类注解
@EnableDiscoveryClient
@SpringBootApplication
@MapperScan
@EnableFeignClients
8.配置类注解
@Configuration
@bean
@Component
@ComponentScan
@EnableTransactionManagement
9.切面类注解
@Aspect
@After
@Around
@PointCut
@EnableAspectJAutoProxy