摘要:
1 匹配首尾空格的正则表达式:(^\s*)|(\s*$) 2 整数或者小数:^[0-9]+\.{0,1}[0-9]{0,2}$ 3 只能输入数字:"^[0-9]*$"。 4 只能输入n位的数字:"^\d{n}$"。 5 只能输入至少n位的数字:"^\d{n,}$"。 6 只能输入m~n位的数字:。"^\d{m,n}$" 7 只能输入零和非零开头的数字:"^(0|[1-9][0-9]*)$"。 8 阅读全文
posted @ 2019-10-16 12:08
全力以赴001
阅读(21156)
评论(0)
推荐(1)
摘要:
import cn.sisyphe.framework.web.exception.DataException; import lombok.extern.slf4j.Slf4j; import org.springframework.http.HttpStatus; import org.springframework.http.converter.HttpMessageConversionEx 阅读全文
posted @ 2019-10-16 10:57
全力以赴001
阅读(440)
评论(0)
推荐(0)

浙公网安备 33010602011771号