@Autowired private ApplicationContext applicationContext;Resource resource = applicationContext.getResource("classpath:com/springdemo/resource/test.txt")
本文共 208 字,大约阅读时间需要 1 分钟。
@Autowired private ApplicationContext applicationContext;Resource resource = applicationContext.getResource("classpath:com/springdemo/resource/test.txt")
转载于:https://www.cnblogs.com/zhao1949/p/6811857.html