当前位置:网站首页>普通函数的参数校验
普通函数的参数校验
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("");
}
}
边栏推荐
猜你喜欢
MySQL 5.7详细下载安装配置教程
‘vite‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。
NK - RTU980 burning bare-metal program
Super detailed mysql database installation guide
动态顺序表的增删查改(C语言实现)
Open Source | Commodity Recognition Recommender System
关于“算力”,这篇文章值得一看
NK-RTU980烧写裸机程序
MySql 5.7.38下载安装教程 ,并实现在Navicat操作MySql
Leetcode952. Calculate maximum component size by common factor
随机推荐
[Interview: Concurrency 37: Multithreading: Thread Pool] Custom Thread Pool
实用生物信息学2:多组学数据整合和挖掘
'vite' is not an internal or external command, nor is it a runnable program or batch file.
《c语言》青蛙跳台阶递归问题
MySQL 5.7详细下载安装配置教程
Jetpack Compose学习(8)——State及remeber
shell/bash脚本命令教程
《如何戒掉坏习惯》读书笔记
《c语言小游戏》入门级三子棋游戏(机器人加强版)
mysql插入新字段方法
第9章 异常try...except...else...finally
"C language" frog jumping steps recursion problem
开源|商品识别推荐系统
2022.07.18_每日一题
MySQL 5.7升级到8.0详细过程
MySql数据库优化查询工具
进程和线程的区别&&run和start区别与联系
Fund investment advisory business
Introduction and self-order of bcos
2022.07.29_Daily Question