'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;