如何使用不同的系统variables.As集重新加载spring上下文在下面的场景中,我希望在使用dev2属性重新启动上下文之前加载dev1属性,初始化beans。System.setProperty("env","dev1");ClassPathXmlApplicationContextcontext = new C
我正在尝试一个使用SPRING在Triangle bean中调用方法draw()的活动。然而,当我试图访问spring.xml文件时,我遇到了一个错误。document from class path resource [spring.xml]; nested exception is java.io.FileNotFoundException: classpath resource [spring.xml] cannot be opened because it do