I am using the Apache Tomcat server. In a Java class in a library, I need to open a file to read it using getResourceAsStream(). Which directory should the file be in so it can be opened from the Java code, and what path should I use in the argument to getResourceAsStream()?
相关问题
- Tomcat and SSL Client certificate
- Can't configure nginx as a proxy for tomcat wi
- #{facesContext} EL expression not resolved at runt
- Tomcat 8 how to remove sessionCookieName from URL
- jsp caching tag library
This code reads test.properties file from the conf folder: