后端
hanbing521
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
spring mvc annotation 注解开发
spring mvc annotation 注解开发 1.新建maven模块 2.添加web 模块 Add FrameWrok Support… 4.0 3. web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"原创 2021-07-13 16:34:38 · 124 阅读 · 0 评论 -
# Java后端实现页面跳转
Java后端实现页面跳转 页面跳转分类有两种:重定向和转发,即redirect和forward。 具体区别和含义最后介绍,先给出使用方法。 一:重定向redirect 第一种方式:controller中返回值为String public String login(HttpServletRequest req, HttpServletResponse resp) return “redirect:http://localhost:8080/index”; 第二种方式:controller中返回值为void原创 2021-07-13 14:13:55 · 3121 阅读 · 0 评论
分享