说明某个方法在方法声明上已经声明了会抛异常,那么在调用这个方法的时候,就必须做异常处理,处理的方式有2种,要么try-catch这个异常,要么继续往上一层抛出这个异常,这是java语法要求的,
必须这么做

public void  getFireWalls(HttpServletResponse response, HttpServletRequest request, HttpSession session)
throws IOException {

UserModel u = AuthUtil.getLoginUser(request);
String path = request.getParameter("path");
path = URLDecoder.decode(path, "UTF-8");

 

相关文章:

  • 2022-12-23
  • 2022-01-19
  • 2021-09-15
  • 2021-10-19
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-19
  • 2021-06-16
  • 2022-12-23
  • 2021-11-07
相关资源
相似解决方案