Last active
August 29, 2015 14:19
-
-
Save oshingc/514a0a475355274107d0 to your computer and use it in GitHub Desktop.
Is a Java Thing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[How to load a file that is on the project] | |
1. Put the file at the path project/src/main/resources/myfolder/myfile.xls | |
2. Run this code: | |
import org.springframework.util.ResourceUtils; | |
File xls = ResourceUtils.getFile("classpath:myfolder/myfile.xls"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment