1. 使用ClasspathResource
import org.springframework.core.io.ClassPathResource; |
2. 使用Resouce或配置:
import org.springframework.core.io.Resource; |
1. 使用ClasspathResource
import org.springframework.core.io.ClassPathResource; |
2. 使用Resouce或配置:
import org.springframework.core.io.Resource; |