当前位置:网站首页>普通函数的参数校验
普通函数的参数校验
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("");
}
}
边栏推荐
猜你喜欢
随机推荐
Zabbix6.2 Surprise Release!Especially optimize the performance of medium and large environment deployment!
2704:寻找平面上的极大点
Matlab学习第一天(持续更新中)
一文搞定代码中的命名
《C语言小游戏》扫雷
The Spark run on Yarn Spark application
2022.07.26_每日一题
2022.07.12_每日一题
使用MySQL如何查询一年中每月的记录数
2022.07.18 _ a day
Client navicat installation tutorial
Practical Bioinformatics 2: Multi-omics data integration and mining
DAY18:XSS 漏洞
NK-RTU980烧写裸机程序
MySQL 8.0.29 解压版安装教程(亲测有效)
波士顿房价数据集 Boston house prices dataset
【Objective-C语言中的@property】
信息收集-DNS
MySQL table creation statement_Three commonly used MySQL table creation statements
2022.07.13_Daily Question