Resource resource = appContext.getResource("classpath:com/yiibai/common/testing.txt");. 只需要指定资源的位置,Spring将处理其余部分,并返回一个资源对象。
確定! 回上一頁