会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
zjgl_badBoy
博客园
首页
新随笔
联系
管理
订阅
2020年9月8日
java接口对入参的判断校验
摘要: 之前一直是用: if(userName == null && userName == ""){throw ServiceException("用户名不能为空"); } 后来:学会了Assert断言: Assert.hasText(ouserName,"用户名不能为空"); jar包: import
阅读全文
posted @ 2020-09-08 23:21 BlakeYa
阅读(2037)
评论(0)
推荐(0)
编辑
公告