2017-02-28 48 views

回答

0

當然

import org.springframework.core.io.Resource; 

@Value("classpath:my_file.txt") 
private Resource myFile; 
+0

資源不是字符串! – AlexB