获取SRC目录InputStream input=当前ClassName.class.getClassLoader().getResourceAsStream("hibernate.cfg.xml");获取编译后的bin目录String binPath=HibernateSessionFactory.class.getClass().getResource("/").getPath(); Read More
posted @ 2012-10-22 14:47 为啥 Views(1137) Comments(0) Diggs(0) Edit