I am developing a simple web application in Java EE. I use annotations for servlets, and I would like to populate the annotation parameters with the value from the properties file, but I do not know how to do this. I would like to do something like this:
@WebServlet(urlPatterns="${key.value1}")
public class HomeServlet extends MyCustomServlet
{
...
}
key.value1=/home
Is it possible? If so, what is the solution?
Thanks.
source
share