随笔分类 - 测试开发进阶——Spring boot—入门
摘要:web网页post提交数据: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <form action="http://localhost:8080/
阅读全文
posted @ 2021-08-01 16:32
小白龙白龙马
摘要:html网页post方式提交数据: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <form action="http://localhost:80
阅读全文
posted @ 2021-08-01 16:01
小白龙白龙马
摘要:html中post方式: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <form action="http://localhost:8080/te
阅读全文
posted @ 2021-08-01 15:42
小白龙白龙马
摘要:html页面中post方式提交数据: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <form action="http://localhost:8
阅读全文
posted @ 2021-08-01 15:26
小白龙白龙马
摘要:创建Bean对象: package com.awaimai.web; public class Student { private String firstName; private String lastName; public void setFirstName(String firstName
阅读全文
posted @ 2021-08-01 14:28
小白龙白龙马
摘要:通过HttpServletRequest来获取前端页面参数,代码见下图 ,简单来说就是通过调用request的getParameter方法来获取参数 这种方式也可以获取表单参数,一般get和post请求都可以。此处只演示get请求。 控制器: package com.awaimai.web; imp
阅读全文
posted @ 2021-08-01 13:09
小白龙白龙马
摘要:通过URL传递参数与上面的URL不同,上面的URL中均需写明参数名和对应参数值,这里的URL传递参数,仅需要在地址栏输入参数值,然后后台自动匹配到对应的参数名。 springMVC通过使用处理器映射和@PathVariable注解的组合来获取URL参数。 首先通过处理器映射可以定位参数的位置和名称,
阅读全文
posted @ 2021-07-31 19:09
小白龙白龙马
摘要:控制器: package com.awaimai.web; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestPar
阅读全文
posted @ 2021-07-31 18:05
小白龙白龙马
摘要:控制器: package com.awaimai.web; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestPar
阅读全文
posted @ 2021-07-31 17:59
小白龙白龙马
摘要:控制器: package com.awaimai.web; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestPar
阅读全文
posted @ 2021-07-31 17:15
小白龙白龙马
摘要:控制器: package com.awaimai.web; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestPar
阅读全文
posted @ 2021-07-31 16:40
小白龙白龙马
摘要:控制器页面: package com.awaimai.web; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.Response
阅读全文
posted @ 2021-07-31 16:15
小白龙白龙马
摘要:控制器——控制页面访问 package com.awaimai.web; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.Res
阅读全文
posted @ 2021-07-31 15:53
小白龙白龙马

浙公网安备 33010602011771号