config.getInitParameter always return null

前端 未结 5 1134
爱一瞬间的悲伤
爱一瞬间的悲伤 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:38

    Make sure you have really deployed the proper web.xml. Also check with config.getInitParameterNames() what parameters have been found.

提交回复
热议问题