Class CodeAction

java.lang.Object
net.mingsoft.basic.action.web.CodeAction

@Controller("codeAction") @RequestMapping("code") public class CodeAction extends Object
图片验证码
Author:
by 铭软开发团队
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    index(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, jakarta.servlet.http.HttpSession session)
    返回验证码图片

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CodeAction

      public CodeAction()
  • Method Details

    • index

      @GetMapping(produces="image/jpeg") @ResponseBody public byte[] index(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, jakarta.servlet.http.HttpSession session) throws IOException
      返回验证码图片
      Parameters:
      req - HttpServletRequest对象
      res - HttpServletResponse 对象
      Throws:
      jakarta.servlet.ServletException - 异常处理
      IOException - 异常处理