替换程序化的spring @Configuration

时间:2014-08-24 12:36:58

标签: java spring spring-mvc

我有一些使用proj_SDK.jar构建的Spring。我有jar的来源,所以我看到以下配置类:

package com.my.private;

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;

/**
 * Configuration of Spring Beans file name.
 *
 */
@Configuration
@ImportResource({"classpath:base-core-beans.xml", "classpath:base-security-context.xml"})
public class XmlConfig
{

}

但问题是我不想加载base-security-context.xml上下文文件。我想只有base-core-beans.xml上下文 我该怎么办才能加载base-core-beans.xml

一些(可能)有用的细节:
我正在构建一个Web应用程序,所以最终我还会有web.xml个文件

0 个答案:

没有答案
相关问题