亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

java監聽器

java監聽器

黃森huang 2016-11-25 16:37:16
在運行java中HttpSessionListener監聽器時,運行報錯:嚴重:?StandardWrapper.Throwablecom.sun.jersey.api.container.ContainerException:?The?ResourceConfig?instance?does?not?contain?any?root?resource?classes.以下是監聽器程序:package?Listener1; import?javax.servlet.annotation.WebListener; import?javax.servlet.http.HttpSessionEvent; import?javax.servlet.http.HttpSessionListener; @WebListener public?class?HSL?implements?HttpSessionListener?{ private?int?ub; @Override public?void?sessionCreated(HttpSessionEvent?se)?{ ub++; se.getSession().getServletContext().setAttribute("ub",?ub); } @Override public?void?sessionDestroyed(HttpSessionEvent?se)?{ ub--; se.getSession().getServletContext().setAttribute("ub",?ub); } } 求大神指點哪里錯誤?。。。?!非常感謝?。。?!
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 1436 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號