天天看点

接口动态调用spring配置文件配置调用方法ApplicationContextUtil类

<"bean id="dt" class="DtClass" />

private ServiceOutput doClazzByBeanName(String beanName, ServiceInput input) throws ServiceException {

import org.springframework.beans.BeansException;

import org.springframework.context.ApplicationContext;

import org.springframework.context.ApplicationContextAware;

public class ApplicationContextUtil implements ApplicationContextAware {

}