代码实例
文件路径可基于classpath,也可以使用文件系统的绝对路径
Resource resource = applicationContext.getResource("classpath:/redisson.yml");
InputStream inputStream = resource.getInputStream();
PREVIOUSVue Router测试
NEXTJavaScript实现面向对象
文件路径可基于classpath,也可以使用文件系统的绝对路径
Resource resource = applicationContext.getResource("classpath:/redisson.yml");
InputStream inputStream = resource.getInputStream();