Retrieve Init parameters outside servlet
问题 I have a 3-tier application I have to modify. I'm totally new to the entire webstuff of Java, so bear with me please. Currently the application has a UI, Application and Database layer but I am attempting to decouple the SQL database from the database layer using dependency injection. So at some point I'm not going to need SQL server credentials in my application because the database backend might be plain text. The point is that the current SQL credentials are stored in the web.xml file as