当前位置:网站首页>@Role of requestparam annotation
@Role of requestparam annotation
2022-07-04 08:08:00 【xiao pan】
@RequestParam: Bind request parameters to controller On the method parameters ,
( yes springmvc Receive comments for common parameters in )
/**
* attribute :1. value: Name in request parameter
2. required: Whether this parameter must be provided in the request parameter , The default value is true,true Is mandatory
3. defaultValue: The default value is
* @param status
* @return
*/
@PostMapping("user/add")
@ResponseBody
public List<User> add(@RequestParam(value = "status",required = false,defaultValue = "0")Integer status){
// TODO
return null;
}
边栏推荐
- 【性能测试】一文读懂Jmeter
- In the era of low code development, is it still needed?
- 神经网络入门(下)
- How does dataframe calculate the average value of each row as another column
- Group programming ladder race - exercise set l2-002 linked list de duplication
- 1、卡尔曼滤波-最佳的线性滤波器
- Is l1-029 too fat (5 points)
- Zephyr learning notes 1, threads
- Put a lantern on the website during the Lantern Festival
- PCIe knowledge points -010: where to get PCIe hot plug data
猜你喜欢
Zephyr learning notes 1, threads
A method for detecting outliers of data
一文了解數據异常值檢測方法
[Gurobi] 简单模型的建立
Go learning notes - constants
What are the work contents of operation and maintenance engineers? Can you list it in detail?
Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
[performance test] read JMeter
Practice (9-12 Lectures)
运动【跑步 01】一个程序员的半马挑战:跑前准备+跑中调整+跑后恢复(经验分享)
随机推荐
L1-027 rental (20 points)
Const string inside function - C #
L1-021 important words three times (5 points)
如何用MOS管来实现电源防反接电路
Mysql database - function constraint multi table query transaction
Tri des fonctions de traitement de texte dans MySQL, recherche rapide préférée
L1-023 output gplt (20 points)
A method for detecting outliers of data
Unity-Text上标平方表示形式+text判断文本是否为空
L1-025 positive integer a+b (15 points)
力扣今日题-1200. 最小绝对差
谷歌官方回应:我们没有放弃TensorFlow,未来与JAX并肩发展
How to get bytes containing null terminators from a string- c#
System architecture design of circle of friends
Devops Practice Guide - reading notes (long text alarm)
【Go基础】1 - Go Go Go
Activiti常見操作數據錶關系
Jianmu continuous integration platform v2.2.2 release
Collections in Scala
MYCAT middleware installation and use