config.getInitParameter always return null

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

    If use the IDE STS4, checkout if annotation on the class name exists, use BOTH "annotation" and "web.xml" may cause the value null.

提交回复
热议问题