项目框架
Spring+SpringBoot+Mybatis
常用到的注解
controller中
@RestController
@RequestMapping
@Resource (依赖注入)
@PostMapping
@GetMapping
@RequestParam
serviceImpl中
@Service (将当前类注册到容器中,供controller中的@Resource使用)
@Transactional (事务)
model中
@Table (ORM框架对应数据库的表名)
@Id
@GeneratedValue [详解](https://blog.csdn.net/sswqzx/article/details/84337921)
@Transient (表示该属性并非到数据库字段的映射)
dao中
@Param (传入mapper中的参数与数据库字段进行对应,一般传入多个参数时使用)
自己模块外的一些注解
@Configuration (标注配置类)