Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- profile
- web.xml
- Source
- maVen
- VirtualBox
- Eclipse
- xargs
- lsof
- resource
- IntelliJ
- 단축키
- port
- bash
- Quartz
- grep
- 네트워크
- context
- ssh
- GIT
- Mac
- Windows
- import
- netsh
- JavaScript
- Windows 10
- plugin
- 줄바꿈 문자
- find
- vscode
- tomcat
Archives
- Today
- Total
develog
[spring boot] static file read 본문
ClassPathResource
File file = new ClassPathResource("static/findMe.txt").getFile();
ResourceLoader
@Autowired ResourceLoader resourceLoader;
File file = resourceLoader.getResource("classpath:static/findMe.txt").getFile();
ResourceUtils
File file = ResourceUtils.getFile("classpath:static/findMe.txt");
'Dev > Spring Boot' 카테고리의 다른 글
[spring boot] multiple properties file (0) | 2020.08.12 |
---|---|
Spring Boot jar, docker build (0) | 2020.08.06 |
[spring boot] @SpringBootTest, MockMvc (0) | 2020.02.07 |
[H2] spring boot 에서 h2 memory db 사용하기 (0) | 2019.12.13 |
[spring boot] static file (0) | 2019.11.27 |
Comments