org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationcontext.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationcontext.xml] cannot be opened because it does not exist
2017-12-10
hibernate5中的測試代碼有一點更改:
1.把applicationContext.xml配置文件中的3改成5;
2.bean的生成方式不同了。
SessionFactory bean = context.getBean("sessionFactory", SessionFactory.class);
1.把applicationContext.xml配置文件中的3改成5;
2.bean的生成方式不同了。
SessionFactory bean = context.getBean("sessionFactory", SessionFactory.class);
2017-11-21
根據返回的Collextion,在堆內存中創建Collextion.size個實例,因為每個實例由不同的參數調用構造函數生成,所以每一個實例都不一樣,然后每個實例建好后運行@Test,這樣就達到了用不同的參數測試的目的。
2017-11-13