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
processConfiguration 方法 如果在这过程中加载了其他mapper xml,映射中 resultMap 有extend属性的话,Configuration 类中buildAllStatements是有可能抛出异常的
The text was updated successfully, but these errors were encountered:
建议通过Class<?> mapperInterface 获取所有方法名,拼接后通过Configuration类 getMappedStatement(String id, boolean validateIncompleteStatements) 获取MappedStatement
Method[] methods = mapperInterface.getMethods(); for (Method method : methods) { try { String id = prefix + "." + method.getName(); processMappedStatement(configuration.getMappedStatement(id, false)); } catch (Exception e) { //ignore } }
Sorry, something went wrong.
上面方法没有直接调用的地方,大部分都是:
/** * 配置完成后,执行下面的操作 * <br>处理configuration中全部的MappedStatement * * @param configuration */ public void processConfiguration(Configuration configuration) { processConfiguration(configuration, null); }
参数 mapperInterface 大部分情况都是 null,没法像你这样处理。
No branches or pull requests
processConfiguration 方法
如果在这过程中加载了其他mapper xml,映射中 resultMap 有extend属性的话,Configuration 类中buildAllStatements是有可能抛出异常的
The text was updated successfully, but these errors were encountered: