1、运行代码,发现出现了Failed to load ApplicationContext错误。
2、这可能是AppConfig配置类和applicationContext.xml配置文件产生冲突了。
3、把AppConfig配置类的Configuration注解注释掉就可以解决问题了。
1、运行代码,发现出现了Failed to load ApplicationContext错误。
2、这可能是AppConfig配置类和applicationContext.xml配置文件产生冲突了。
3、把AppConfig配置类的Configuration注解注释掉就可以解决问题了。