读取properties文件

 

	Properties prop= new Properties() ;
	InputStream	inStream = new FileInputStream(new File("src/cc/apl330/daoconfig.properties")) ;
	prop.load(inStream) ;
	String userDaoClass = prop.getProperty("userDaoClass") ;
	
	daoconfig.properties文件内容:
	userDaoClass=cc.apl330.dao.daoImplement.UserDAOImple

你可能感兴趣的:(读取properties文件)