In this video, explains how to use both of the objects to retrieve deploy-time information.
blog:
https://github.com/TinaXing2012/servlet-jsp/blob/master/notes/ServletConfigVSServletContext.md
source code:
https://github.com/TinaXing2012/servlet-jsp/tree/master/servletconfig-servletcontext