随笔分类 - 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
阅读全文
摘要:实现登陆页面拦截功能 首页,登陆页面允许随意进入,首页需要输入登陆信息之后再进入 <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>$Title$</title> </head
阅读全文
摘要:controller package com.wu.controller; import com.wu.pojo.User; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.Req
阅读全文
摘要:项目结构 时刻记住maven的导入资源问题 配置过程:projectStructure->Artifacys->lib->+ 1.pom.xml导入依赖,引入资源导出问题的代码 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http:/
阅读全文
摘要:整合过程:mybatis,spring,springmvc 1.导入依赖,静态资源导出问题 <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</versi
阅读全文
摘要:代码测试: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <!--script标签不能自闭--> <script> //编写一个javascript对象 var user={ n
阅读全文
摘要:环境: form.jsp进行post请求 <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>Title</title> </head> <body> <form action=
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号