今天在学习Spring的时候,遇到了这么个问题
org.springframework.beans.factory.BeanDefinitionStoreException
我觉得和奇怪,明明我的IDEA工程下的classpath下是有这个xml文件的,为什么会找不到呢。
public class ceshi {
public static void main(String[] args) {
ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
LocationServiceImpl locationService = (LocationServiceImpl)ctx.getBean("locationServiceTarget");
String str = "{\"wifi_tower_connected_info\":{\"mac_address\":\"ac:f7:f3:5a:8c:ba\",\"wifi_ip_address\":\"-1716273910\",\"wifi_ssid\":\"ZJUWLAN\",\"time\":\"1396886404395\",\"wifi_bssid\":\"80:f6:2e:1d:d5:d0\"},\"cell_tower_neighbors_info\":{\"time\":\"1396886404388\",\"cell_tower_list\":[{\"location_area_code\":\"0\",\"cell_id\":\"65535\",\"signal_strength\":\"20\"},{\"location_area_code\":\"22295\",\"cell_id\":\"28903\",\"signal_strengt