Why would we set ServletContext parameters using the setAttribute()
method, as we can accomplish the same thing by setting parameters in web.xml
and fetching them using getInitParameter()
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…