查询
运行类,添加@MapperScan(“路径”)注解扫描Mapper

Controller层
使用RequsetMapping(“路径”)注解设置总请求path,请求使用@GetMapping(),有请求参数时里面加上"/{xx}"并在参数列表对于属性添加@PathVariable注解

Service层接口

Service接口层实现类Impl,添加@Service注解

Mapper编写(未使用Mybatis Plus)

增
使用@PostMapping注解

删
使用@DeleteMapping注解

改
使用@PutMapping注解
