I am developing a simple web app in Java EE. I use annotations for the servlets and I would like to fill the parameters of the annotation with value from a properties file but I don't know how to do this. I would like to do something like this :
// My Servlet
@WebServlet(urlPatterns="${key.value1}")
public class HomeServlet extends MyCustomServlet
{
...
}
# My properties files
key.value1=/home
Is it possible ? If yes, what is the solution ?
Thanks.