摘要: 重定向 一个web资源收到客户端的请求后,他会通知客户端去访问另外一个web资源,这个过程叫做重定向。 常见场景 用户登录:void sendRedirect(String var1) throws IOException; 2.路径重定向: 注意:路径要写完全路径 package com.xin. 阅读全文
posted @ 2025-09-03 16:18 xixixixin 阅读(9) 评论(0) 推荐(0)
摘要: 验证码功能 前端实现:js 后端实现:Java的image(图片类),生成一个图片,响应到前端。 StringBuffer缓存区设置 append方法返回StringBuffer类的实例化类对象。 public class StringBufferDemo01{ public static void 阅读全文
posted @ 2025-09-03 10:04 xixixixin 阅读(10) 评论(0) 推荐(0)