/ 详情

FilterManager .loadFilterConfig重复加载

Backlog
Opened this issue  
2019-07-24 10:11
public static Properties loadFilterConfig() throws IOException {
    Properties filterProperties = new Properties();

    loadFilterConfig(filterProperties, ClassLoader.getSystemClassLoader());
    loadFilterConfig(filterProperties, FilterManager.class.getClassLoader());
    loadFilterConfig(filterProperties, Thread.currentThread().getContextClassLoader());
    loadFilterConfig(filterProperties, FilterManager.class.getClassLoader());

    return filterProperties;
}

请问,第二个和第四个有什么区别?为何要执行两次呢?

Comments (1)

晚安,地球 created任务

难道是怕别名重复覆盖? 那么删了第二个不就行了嘛

Sign in to comment

状态
Assignees
Labels
Milestones
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(1)
1388047 voc2048 admin 1578950339