开发者

Spring file upload file content valdiation

I need to upload file using Spring. I am using the Spring fileupload functionality. File can have any number of lines of records must be of 25digit number (should not be lessthan or morethan). does spring validator has option to validate this case or should we need to parse every 开发者_StackOverflow社区line and validate?


I don't think spring has built in validator for that case. Should be straight forward enough to write a regular expression-- \d{25} -- and see if each line in the file matches that pattern.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜