从classpath读取通常写法Spring环境 从classpath读取 通常写法InputStream input = getClass().getResourceAsStream("/default.properties"); Spring环境ClassPathResource classPathResource = new ClassPathResource("/default.properties");# classPathResource里有File、InputStream等信息