靜態導入
例如打印操作System.out.println(...);就可以將其寫入一個靜態方法print(...),在使用時直接print(...)就可以了。
例如打印操作System.out.println(...);就可以將其寫入一個靜態方法print(...),在使用時直接print(...)就可以了。
2017-12-23
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