摘要: 我们从前台页面传递参数到后台,经常会遇到乱码问题!! 例子: <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>Title</title> </head> <body> <%- 阅读全文
posted @ 2021-12-05 19:27 qwedfrgh 阅读(67) 评论(0) 推荐(0)
摘要: 处理前台提交的数据 1、提交的域名称和处理方法的参数名一致 提交数据 : http://localhost:8080/SpringMVC_05//05/t1/xiangtong 处理方法 : @RequestMapping("/05/t1")public String teste1(String n 阅读全文
posted @ 2021-12-05 18:57 qwedfrgh 阅读(34) 评论(0) 推荐(0)
摘要: 一般的请求默认是转发 我们测试SpringMVC的转发和重定向的时候,先把视图解析器配置注释掉 请求: forward 转发: redirect @Controller public class ResultSpringMVC { @RequestMapping("/rsm/t2") public 阅读全文
posted @ 2021-12-05 17:18 qwedfrgh 阅读(37) 评论(0) 推荐(0)