当前位置:网站首页>@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;
}
边栏推荐
- Moher college phpMyAdmin background file contains analysis traceability
- 1. Kalman filter - the best linear filter
- Put a lantern on the website during the Lantern Festival
- With excellent strength, wangchain technology, together with IBM and Huawei, has entered the annual contribution list of "super ledger"!
- Activiti常见操作数据表关系
- [gurobi] establishment of simple model
- Book list | as the technical support Party of the Winter Olympics, Alibaba cloud's technology is written in these books!
- Blog stop statement
- JVM -- class loading process and runtime data area
- Sports [running 01] a programmer's half horse challenge: preparation before running + adjustment during running + recovery after running (experience sharing)
猜你喜欢
随机推荐
If the array values match each other, shuffle again - PHP
Example analysis of C # read / write lock
L2-013 red alarm (C language) and relevant knowledge of parallel search
SQL注入测试工具之Sqli-labs下载安装重置数据库报错解决办法之一(#0{main}thrown in D:\Software\phpstudy_pro\WWW\sqli-labs-……)
L1-028 judging prime number (10 points)
How to get bytes containing null terminators from a string- c#
zabbix 5.0监控客户端
团体程序设计天梯赛-练习集 L2-002 链表去重
PHP converts seconds to timestamps - PHP
【Go基础】1 - Go Go Go
Group programming ladder race - exercise set l1-006 continuity factor
Blog stop statement
[test de performance] lire jmeter
团体程序设计天梯赛-练习集 L1-006 连续因子
L1-021 important words three times (5 points)
【性能測試】一文讀懂Jmeter
How to reset IntelliSense in vs Code- How to reset intellisense in VS Code?
This monitoring system can monitor the turnover intention and fishing all, and the product page has 404 after the dispute appears
Système de surveillance zabbix contenu de surveillance personnalisé
How does dataframe calculate the average value of each row as another column