티스토리 뷰
728x90
URL sqlScriptUrl = MyServletContextListener.class
.getClassLoader().getResource("sql/script.sql");
https://stackoverflow.com/questions/19414453/how-to-get-resources-directory-path-programmatically
How to get resources directory path programmatically
I have the following directory layout: src main java resources sql (scripts for database) spring (configuration) webapp Within a ServletContextListener cl...
stackoverflow.com
728x90
'공부' 카테고리의 다른 글
[MySQL] create user (0) | 2022.01.10 |
---|---|
[Java] SHA256 (0) | 2022.01.10 |
[Java] Orc File (0) | 2022.01.10 |
[Java] files (0) | 2022.01.10 |
[JUnit] Assert API (0) | 2022.01.10 |
댓글