ApplicationContext factory=new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
String[] s = factory.getBeanDefinitionNames();
for(String ss:s){
System.out.println(ss);
}
userServiceImpl
userController
userDaoImpl
org.springframework.context.annotation.internalConfigurationAnnotationProcessor
org.springframework.context.annotation.internalAutowiredAnnotationProcessor
org.springframework.context.annotation.internalRequiredAnnotationProcessor
org.springframework.context.annotation.internalCommonAnnotationProcessor
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor#0
org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor
org.springframework.context.annotation.ConfigurationClassPostProcessor.enhancedConfigurationProcessor
@Autowired
private IUserService userService;
public void say(){
userService.say();
}
chinesszz
相关分类