当前位置:网站首页>普通函数的参数校验
普通函数的参数校验
2022-07-31 07:29:00 【等风来】
@Service
@Validated
public class ValidTest {
public void test(@Validated @NotBlank(message = "参数不能为空") String s){
System.out.println(s);
}
}
@SpringBootTest
public class ValidClass {
@Autowired
public ValidTest test;
@Test
public void test01(){
test.test("");
}
}
边栏推荐
- 2022.07.15_Daily Question
- 力扣 593. 有效的正方形
- Linked list implementation and task scheduling
- NK - RTU980 burning bare-metal program
- ros little turtle drawing
- Financial leasing business
- The Spark run on Yarn Spark application
- 超级详细的mysql数据库安装指南
- MySQL installation to the last step in the write the configuration file failed?And after the installation steps
- Vscode:Project-tree插件
猜你喜欢

Linked list implementation and task scheduling

First acquaintance with NK-RTU980 development board

《C语言小游戏》扫雷

完美指南|如何使用 ODBC 进行无代理 Oracle 数据库监控?

DAY18:Xss 靶场通关手册

Leetcode952. Calculate maximum component size by common factor

PHP中 比较 0、false、null,‘‘ “

MySQL 5.7 安装教程(全步骤、保姆级教程)

客户端navicat安装教程

CNN--Introduction to each layer
随机推荐
关于“算力”,这篇文章值得一看
Linked list implementation and task scheduling
ZCMU--1862: zbj的狼人杀
《如何戒掉坏习惯》读书笔记
页面懒加载
"The C language games" mine clearance
2022.07.20_每日一题
2022.07.13 _ a day
Machine Learning - Notes and Implementation of Linear Regression, Logistic Regression Problems
[Interview: Concurrency 37: Multithreading: Thread Pool] Custom Thread Pool
Leetcode952. Calculate maximum component size by common factor
The first part of the R language
MySQL 5.7 安装教程(全步骤、保姆级教程)
ros小乌龟画图
regex bypass
客户端navicat安装教程
Navicat new database
波士顿房价数据集 Boston house prices dataset
正则表达式绕过
PHP中 比较 0、false、null,‘‘ “