We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@OverRide public List selectByExample(Example example) { try { DynamicDataSource.setDataSource(DataSourceEnum.SLAVE.getName()); Method selectByExample = mapper.getClass().getDeclaredMethod("selectByExample", example.getClass()); Object result = selectByExample.invoke(mapper, example); return (List) result; } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } DynamicDataSource.clearDataSource(); return null; } 所有异常都给捕获了,并且也没打印日志,为啥不把异常抛给controller处理
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
@OverRide
public List selectByExample(Example example) {
try {
DynamicDataSource.setDataSource(DataSourceEnum.SLAVE.getName());
Method selectByExample = mapper.getClass().getDeclaredMethod("selectByExample", example.getClass());
Object result = selectByExample.invoke(mapper, example);
return (List) result;
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace();
} catch (NoSuchMethodException e) {
e.printStackTrace();
}
DynamicDataSource.clearDataSource();
return null;
}
所有异常都给捕获了,并且也没打印日志,为啥不把异常抛给controller处理
The text was updated successfully, but these errors were encountered: