Please enable JavaScript.
Coggle requires JavaScript to display documents.
Spring (入門 (4.JPA (操作 (查 (findAll, findOne(id)), 增 (save), 改…
Spring
入門
4.JPA
配置
查詢
複雜查詢
自定義查詢
自定義更新
操作
增
save
改
save(pojo)其中傳參包含id
刪
delete(id)
查
findAll
findOne(id)
事務
關係
1對1
1對多,多對1
多對多
1.URL 路由
RESTFul URL
一個基本restful 請求
RestController
RequestMapping("value
= "/say",method = RequestMethod.POST")
DeleteMapping
GetMapping
PutMapping
PostMapping("/say")
回傳樣板
Controller
RequestMapping("value
= "/say",method = RequestMethod.POST")
GetMapping("/books")
ResponseBody
2.參數處理
http://127.0.0.1:8080/api/v1/books/{id}
GetMapping("/books/{id}")
public Object
getOne(@PathVariable
long id)
http://127.0.0.1:8080/api/v1/books?name=coolio&author=culon
PostMapping("/books")
public Object
post(@RequestParam
String
name,@RequestParam
String author)
3.自定義配置
配置文件
自定義屬性配置
多環境配置
教學
Spring
Java Web开发系列课程:SpringMVC框架入门
Java Web开发系列课程:MyBatis持久层框架入门
Java Web开发系列课程:Spring框架入门
Introduction to Spring Cloud in 10 Minutes
51CTO学院
Spring
IOC
AOP
使用流程
常用註解
Profile
Spring Boot
RESTful
RESTful API 设计指南
理解RESTful架构
Thymeleaf
Thymeleaf 官網
Bootstrap
工具
前端
WebStorm 有哪些过人之处?
前端开发神器Webstorm