重写 getServletConfig() 方法即可,然后在 doGet() 和 doPost() 里调用该方法,即可得到 ServletConfig 。
直接 this.getServletConfig() 即可。
重写 getServletConfig() 方法即可,然后在 doGet() 和 doPost() 里调用该方法,即可得到 ServletConfig 。
直接 this.getServletConfig() 即可。
转载于:https://www.cnblogs.com/bear-19970220/p/10334227.html