为了账号安全,请及时绑定邮箱和手机立即绑定

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'


正在回答

4 回答

实现类和对应的接口类的方法不一样,应该是接口类在定义时没有throw BusinessException.

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

亲,我看了没有发现课程问题啊,你可以说的具体一点。谢谢

shvihyqkiehadcenzm

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

在UserService接口中这样定义re'gister方法,

 void register(UserModel userModel) throws BusinessException;


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

举报

0/150
提交
取消

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

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信