当前位置:网站首页>@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;
}
边栏推荐
- SQL注入测试工具之Sqli-labs下载安装重置数据库报错解决办法之一(#0{main}thrown in D:\Software\phpstudy_pro\WWW\sqli-labs-……)
- string. Format without decimal places will generate unexpected rounding - C #
- Mysql database - function constraint multi table query transaction
- Do you know about autorl in intensive learning? A summary of articles written by more than ten scholars including Oxford University and Google
- Flask 常用组件
- ZABBIX 5.0 monitoring client
- Jianmu continuous integration platform v2.2.2 release
- 线性代数1.1
- MySQL中的文本處理函數整理,收藏速查
- 团体程序设计天梯赛-练习集 L2-002 链表去重
猜你喜欢
论文学习——基于极值点特征的时间序列相似性查询方法
Advanced MySQL: Basics (5-8 Lectures)
Devops Practice Guide - reading notes (long text alarm)
Take you to master the formatter of visual studio code
ZABBIX monitoring system custom monitoring content
Take you to master the formatter of visual studio code
1、卡尔曼滤波-最佳的线性滤波器
Common components of flask
[performance test] read JMeter
JVM中堆概念
随机推荐
R language uses cforest function in Party package to build random forest based on conditional inference trees, uses varimp function to check feature importance, and uses table function to calculate co
时序数据库 InfluxDB 2.2 初探
L1-030 one gang one (15 points)
If the array values match each other, shuffle again - PHP
NPM run build error
The frost peel off the purple dragon scale, and the xiariba people will talk about database SQL optimization and the principle of indexing (primary / secondary / clustered / non clustered)
ZABBIX 5.0 monitoring client
Wechat has new functions, and the test is started again
System architecture design of circle of friends
Use preg_ Match extracts the string into the array between: & | people PHP
Const string inside function - C #
Cannot click button when method is running - C #
PHP converts seconds to timestamps - PHP
21 examples of strategic goals to promote the rapid development of your company
Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
Unity text superscript square representation +text judge whether the text is empty
How to improve your system architecture?
Moher College phpmailer remote command execution vulnerability tracing
Preliminary study on temporal database incluxdb 2.2
Leetcode 23. Merge K ascending linked lists