CODEDRAGON ㆍDevelopment/JSP
경고 메시지
The method getValue(String) from the type HttpSession is deprecated, The method putValue(String, Object) from the type HttpSession is deprecated
Multiple annotations found at this line: - The method getValue(String) from the type HttpSession is deprecated - The method getValue(String) from the type HttpSession is deprecated - The method getValue(String) from the type HttpSession is deprecated |
|
The method putValue(String, Object) from the type HttpSession is deprecated |
|
해경방법
Deprecated된 session.getValue()와 session.setValue() 메소드 대신 session.setAttribute()와 session.getAttribute()를 사용합니다.
session.getValue("name"); session.getAttribute("name "); |
session.setAttribute("name ", "value") session.putValue("name ", "value"); |