spring boot restful
1、创建spring boot项目导入依赖
2、创建结构和这篇博客一样
3、测试sringboot REST 默认的增删改查接口
-
总接口
接口地址就是类名小写后在后面加上s -
分页
-
分页按照顺序
-
查询单条数据
-
插入单条数据
-
修改单条数据
-
删除单条数据
4、spring boot rest 自定义查询方法
- 测试
此时的路径太长是可以调整的
http://localhost:8080/books/search/findByNameContaining?name=三
结果: