SpringContextUtil.java 文件源码

java
阅读 89 收藏 0 点赞 0 评论 0

项目:FoDBugTrackerUtility 作者:
/**
 * Get a basic Spring {@link GenericApplicationContext} with additional 
 * custom editors registered. The additional custom editors are automatically
 * loaded from com.fortify.util.spring.propertyeditor (sub-)packages
 * if they have the {@link Component} annotation.
 * @return Basic Spring ApplicationContext with custom editors registered.
 */
public static final GenericApplicationContext getBaseContext() {
    GenericApplicationContext context = new GenericApplicationContext();
    context.setClassLoader(SpringContextUtil.class.getClassLoader());

    CustomEditorConfigurer cec = new CustomEditorConfigurer();
    cec.setCustomEditors(PROPERTY_EDITORS);
    context.addBeanFactoryPostProcessor(cec);
    return context;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号