为了账号安全,请及时绑定邮箱和手机立即绑定

public void init(ServletConfig config) 和public void init() 的区别

在获取初始化参数那章,自动生成了带有ServletConfig config的init 然后一直运行不出结果,删了以后就可以了。想问表示什么意思呢

public void init(ServletConfig config) throws ServletException {
        // TODO Auto-generated method stub
    this.setUsername(this.getInitParameter("username"));
    this.setPassword(this.getInitParameter("password"));
    }

public void init(ServletConfig config) throws ServletException {
        // TODO Auto-generated method stub
    this.setUsername(this.getInitParameter("username"));
    this.setPassword(this.getInitParameter("password"));
    }



正在回答

举报

0/150
提交
取消

public void init(ServletConfig config) 和public void init() 的区别

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号