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.
精彩评论