I am using WildFly 18.0.1 under Linux.
There is test.txt under the war folder WEB-INF/classes/.
What should I do if I press a specific button on my browser to read the contents of the test.txt file and display it on the screen?
Thread.currentThread().getContextClassLoader().getResourceAsStream("test.txt");
can be retrieved as the InputStream
type in .
© 2024 OneMinuteCode. All rights reserved.