sgdy23
2019-01-18 16:32
'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'
实现类和对应的接口类的方法不一样,应该是接口类在定义时没有throw BusinessException.
在UserService接口中这样定义re'gister方法,
void register(UserModel userModel) throws BusinessException;
SpringBoot构建电商基础秒杀项目
49020 学习 · 954 问题
相似问题