I have a plain java class in a web application and want to read a configuration file under WEB-INF
folder. I know the way to access the file if its in the classpath (WEB-INF/classes
folder). Since WEB-INF/classes
folder is meant for .class
files, I want to keep my configuration file under WEB-INF
folder only.
Can anyone tell me how I can access it from my java class?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…