上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 92 下一页
摘要: 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
posted @ 2021-07-19 16:13 yub4by 阅读(62) 评论(0) 推荐(0)
摘要: 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
posted @ 2021-07-18 11:24 yub4by 阅读(85) 评论(0) 推荐(0)
摘要: 文件上传客户端三要素&原理 单文件上传 1 pom.xml 2 3 + 4 5 <!--fileupload和io坐标,用于文件上传--> 6 <dependency> 7 <groupId>commons-fileupload</groupId> 8 <artifactId>commons-fil 阅读全文
posted @ 2021-07-17 21:45 yub4by 阅读(53) 评论(0) 推荐(0)
摘要: 自定义类型转换器 1 package com.haifei.converter; 2 3 import org.springframework.core.convert.converter.Converter; 4 5 import java.text.ParseException; 6 impor 阅读全文
posted @ 2021-07-17 19:54 yub4by 阅读(70) 评论(0) 推荐(0)
摘要: 获取基本数据类型、POJO类型、数组类型的请求参数 1 /** 2 * SpringMVC获取请求数据--基本数据类型参数 3 * @param username 4 * @param age 5 */ 6 @RequestMapping("/save11") 7 @ResponseBody //不 阅读全文
posted @ 2021-07-17 15:30 yub4by 阅读(136) 评论(0) 推荐(0)
摘要: 页面跳转 1 web.xml 2 3 4 <!--配置SpringMVC的核心组件:DispatcherServlet前端控制器--> 5 <servlet> 6 <servlet-name>DispatcherServlet</servlet-name> 7 <servlet-class>org. 阅读全文
posted @ 2021-07-16 19:28 yub4by 阅读(76) 评论(0) 推荐(0)
摘要: SpringMVC的执行流程(组件角度) SpringMVC的组件解析 SpringMVC的注解解析 1 package com.haifei.controller; 2 3 import org.springframework.stereotype.Controller; 4 import org 阅读全文
posted @ 2021-07-16 14:18 yub4by 阅读(75) 评论(0) 推荐(0)
摘要: SpringMVC概述 传统java web SpringMVC web SpringMVC快速入门 实现步骤(如上图) 代码实现 pom.xml中需要配置的依赖 <!--spring坐标--> <dependency> <groupId>org.springframework</groupId> 阅读全文
posted @ 2021-07-16 13:09 yub4by 阅读(46) 评论(0) 推荐(0)
摘要: 搭建初始项目 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins 阅读全文
posted @ 2021-07-16 10:51 yub4by 阅读(70) 评论(0) 推荐(0)
摘要: 1 <?xml version="1.0" encoding="UTF-8"?> 2 <beans xmlns="http://www.springframework.org/schema/beans" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-in 阅读全文
posted @ 2021-07-15 20:22 yub4by 阅读(67) 评论(0) 推荐(0)
上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 92 下一页