config.getInitParameter always return null

前端 未结 5 1132
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-12 18:40

Why does config.getInitParameter(String) always return null in the following code example?

public void init(ServletConfig config) t         


        
5条回答
  •  说谎
    说谎 (楼主)
    2021-01-12 19:24

    Ensure your servlet is calling super.init(config) on its init method, else it won't work.

提交回复
热议问题