-
1.IDEA啟動Spring Boot 2.命令行啟動 切換到工程目錄下 輸入 mvn spring-boot:run 3.先使用命令行編譯mvn install 然后進入target目錄下 java -jar XXX.jar查看全部
-
getMapping 查詢 PostMapping 添加 DeleteMapping 刪除 PutMapping 修改查看全部
-
PostMapping 保存 PutMapping 更新 DeleteMapping 刪除查看全部
-
hibernate: ddl-auto: update/create/create-drop/none/validate validate 驗證屬性和表結構是否一致,不一致將會報錯查看全部
-
@GeneratedValue 自增(MySQL)查看全部
-
JPA(Java Persistence API)定義了一系列對象持久化的標準,目前實現這一規范的產品有Hibernate、TopLink等查看全部
-
@RequestParam(value="id",required=false,defaultValue="0") 傳統的 URL ,其中使用問號(?)查看全部
-
注意: @RequestVariable 和 @RequestParam的區別查看全部
-
Controller 的使用 (1)PathVariable 獲取url中的數據 (2)RequestParam 獲取請求參數的值 (3)GetMapping 組合注解查看全部
-
RequestMethod常用的請求方式是GET、POST查看全部
-
@RequestMapping(value = {"/hello","/hi"}, method=RequestMethod.GET); // 如果可以訪問 2 個,可以寫作一個集合查看全部
-
Controller的使用 (1)@Controller 處理http請求 (2)RestController Spring 4之后新加的注解,原來返回json需要@ResponseBody配合@Controller (3)RequestMapping 配置url映射查看全部
-
屬性配置 (1)@Value (2)@Component (3)@ConfigurationProperties查看全部
-
(1)第一個SpringBoot程序 (2)自定義屬性配置 (3)Controller的使用 (4)spring-data-jpa查看全部
-
SpringBoot--SpringCloud--微服務查看全部
舉報
0/150
提交
取消