課程
/后端開發(fā)
/Java
/2小時(shí)上手SpringBoot
其他代碼和老師的相同,請問這是為什么呢
2020-01-29
源自:2小時(shí)上手SpringBoot 6-2
正在回答
沒寫get/set方法
同問!我也是這樣
我也有相同問題, 感覺和版本有關(guān)。
首先你已經(jīng)從數(shù)據(jù)庫讀取到了數(shù)據(jù), 不過在reponse client 的時(shí)候沒有content。
我的解決辦法是: 在luckymoney class 中加入 getter and setter method。沒有這些method, 我們的application 是不能build json object 的。
Here is the reference to help:?https://stackoverflow.com/questions/36089748/rest-api-returns-empty-bracket-for-get-request/41069407
舉報(bào)
2小時(shí)上手SpringBoot,實(shí)戰(zhàn)開發(fā)紅包表白程序,體現(xiàn)程序員專屬花式浪漫
3 回答數(shù)據(jù)庫配置
5 回答數(shù)據(jù)庫問題
1 回答數(shù)據(jù)庫用的什么軟件?
4 回答數(shù)據(jù)庫版本過高得改時(shí)區(qū)
2 回答數(shù)據(jù)庫連接報(bào)錯(cuò)怎么辦呢
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2020-09-28
沒寫get/set方法
2020-08-12
同問!我也是這樣
2020-02-21
我也有相同問題, 感覺和版本有關(guān)。
首先你已經(jīng)從數(shù)據(jù)庫讀取到了數(shù)據(jù), 不過在reponse client 的時(shí)候沒有content。
我的解決辦法是: 在luckymoney class 中加入 getter and setter method。沒有這些method, 我們的application 是不能build json object 的。
Here is the reference to help:?https://stackoverflow.com/questions/36089748/rest-api-returns-empty-bracket-for-get-request/41069407