随笔分类 -  springMVC

摘要:文件配置 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins 阅读全文
posted @ 2021-06-14 22:03 一拳超人的逆袭 阅读(63) 评论(0) 推荐(0)
摘要:实现登陆页面拦截功能 首页,登陆页面允许随意进入,首页需要输入登陆信息之后再进入 <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>$Title$</title> </head 阅读全文
posted @ 2021-06-14 21:59 一拳超人的逆袭 阅读(56) 评论(0) 推荐(0)
摘要:controller package com.wu.controller; import com.wu.pojo.User; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.Req 阅读全文
posted @ 2021-06-13 19:19 一拳超人的逆袭 阅读(36) 评论(0) 推荐(0)
摘要:项目结构 时刻记住maven的导入资源问题 配置过程:projectStructure->Artifacys->lib->+ 1.pom.xml导入依赖,引入资源导出问题的代码 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http:/ 阅读全文
posted @ 2021-06-13 13:56 一拳超人的逆袭 阅读(262) 评论(0) 推荐(0)
摘要:整合过程:mybatis,spring,springmvc 1.导入依赖,静态资源导出问题 <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</versi 阅读全文
posted @ 2021-06-12 11:43 一拳超人的逆袭 阅读(69) 评论(0) 推荐(0)
摘要:代码测试: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <!--script标签不能自闭--> <script> //编写一个javascript对象 var user={ n 阅读全文
posted @ 2021-06-11 14:24 一拳超人的逆袭 阅读(40) 评论(0) 推荐(0)
摘要:环境: form.jsp进行post请求 <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>Title</title> </head> <body> <form action= 阅读全文
posted @ 2021-06-10 23:27 一拳超人的逆袭 阅读(79) 评论(0) 推荐(0)
摘要:ps:400的问题出错在请求 500的问题出错在代码 web.xml的配置 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www 阅读全文
posted @ 2021-06-10 12:32 一拳超人的逆袭 阅读(58) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-06-09 15:48 一拳超人的逆袭 阅读(39) 评论(0) 推荐(0)