亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

overridden method does not throw 'com.miaosha.error.BusinessException'


'register(UserModel)' in 'com.miaosha.service.impl.UserServiceImpl' clashes with 'register(UserModel)' in 'com.miaosha.service.UserService'; overridden method does not throw 'com.miaosha.error.BusinessException'


正在回答

2 回答

實現類和對應的接口類的方法不一樣,應該是接口類在定義時沒有throw BusinessException.

0 回復 有任何疑惑可以回復我~

在UserService接口中這樣定義re'gister方法,

?void?register(UserModel?userModel)?throws?BusinessException;


0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

overridden method does not throw 'com.miaosha.error.BusinessException'

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號