@ApiImplicitParam(name = "id", value = "用戶ID",required = true, dataType = "Long")這個裏面少了一個參數:paramType="path",否則無法從路徑中獲得id值。
使用Swagger2構建RESTful API文檔遇到的坑
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
定時檢查數據是否過期,如過期則更新字段
敲代码的ciery
2020-07-08 02:55:18
第08講 連接到MySQL數據庫04之jpa
[email protected]
2020-06-30 13:49:53
第08講 初始化數據庫
[email protected]
2020-06-30 13:49:51
第09講 連接到數據庫
[email protected]
2020-06-30 13:49:51
Spring Boot學習筆記之使用Spring Boots實現數據庫操作(IntelliJ IDEA+MySQL)
淇水汤汤
2020-06-21 17:05:43
Spring Boot學習3--配置日誌信息
折尽春风
2020-06-21 07:53:00
Spring Boot學習2--讀取配置文件的值
配置文件內容 application.yml member: info: name: zhou sex: 男 address: henan 1 通過@Component和@Value @Compone
折尽春风
2020-06-21 07:08:21
Spring Boot學習1--介紹
折尽春风
2020-06-21 07:08:21
Spring Security集成Oauth2實現用戶身份驗證+授權
敲代码的ciery
2020-06-20 17:39:25
SSM學習 —— Spring Boot +MyBatis小試煉
敲代码的ciery
2020-06-20 16:33:01
SpringBoot-RabbitMQ
林北林北
2020-06-16 07:01:15
SpringBoot學習-Web
SpringBoot-Web開發 開發Web項目,需要導入Web依賴 <dependency> <groupId>org.springframework.boot</groupId>
林北林北
2020-06-16 07:01:15
SpringBoot+Mybatis實現簡單的圖書購物
林北林北
2020-06-16 07:01:14
使用@Data註解會有編輯器底色警告 ----分享備註
清新悦悠然
2020-06-08 21:39:32
Spring boot使用Thymeleaf模板引擎實現用戶信息添加
末甘
2020-05-25 20:51:52
24小時熱門文章