I am making a Java application that uses, Spring, Maven and the AWS-SDK-Java. In order to the AWS SDK to work I have to place the AWSCredentials.properties
file inside the "MyProject/src/main/resources" folder.
So far so so good. Then I have to create a .war
file. To do that I use mvn install
command and voilá.
Now inside the .war
created, the file I want to access is in the "/WEB-INF/classes/" folder and I need to read it.
How can I access this file inside the war so I can read its content? I have experimented with ServeltContext
but so far nothing I try works!