代码拉取完成,页面将自动刷新
同步操作将从 huifer/Code-Analysis 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
org.springframework.beans.factory.parsing.Problem
Problem
: 问题对象.对于Problem
对象我们先看成员变量. 类本身没有什么复杂
public class Problem {
/**
* 问题信息
*/
private final String message;
/**
* 问题发生的地方
*/
private final Location location;
/**
* 状态, 存储堆栈信息.
*/
@Nullable
private final ParseState parseState;
/**
* 异常
*/
@Nullable
private final Throwable rootCause;
}
ParseState
Location
我们先对 ParseState
进行说明
类全路径: org.springframework.beans.factory.parsing.ParseState
ParseState
主要用来记录每个阶段的 Entry 对象 , 当出现问题的时候使用 toString 进行输出
public final class ParseState {
/**
* Tab character used when rendering the tree-style representation.
*/
private static final char TAB = '\t';
/**
* Internal {@link LinkedList} storage.
* 存储每个阶段的 Entry 对象
*/
private final LinkedList<Entry> state;
public String toString() {
StringBuilder sb = new StringBuilder();
for (int x = 0; x < this.state.size(); x++) {
if (x > 0) {
sb.append('\n');
for (int y = 0; y < x; y++) {
sb.append(TAB);
}
sb.append("-> ");
}
sb.append(this.state.get(x));
}
return sb.toString();
}
}
Entry
接口后我们需要了解在Spring中有那些阶段状态, 即Entry
的实现类public class Location {
/**
* 资源对象
*/
private final Resource resource;
/**
* 源数据
*/
@Nullable
private final Object source;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。