Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does ":.+" in `{param:.+}` means (java)?

What does the :.+ at {param:.+} mean in this set of code in java? I have tried searching however i do not find any explanation. Someone who knows please do explain it to me. Thank you so much.

BatchFileController.java

@RequestMapping("/runbatchfileparam/{param:.+}")  
public ResultFormat runbatchFile(@PathVariable("param") String fileName) 
{  
RunBatchFile rbf = new RunBatchFile();  
return rbf.runBatch(fileName);  
}  
like image 347
Susha Naidu Avatar asked Dec 24 '22 11:12

Susha Naidu


1 Answers

The colon : is separator between the variable name and a regular expression.

The expression .+ means at least one of any character.

like image 94
Kraylog Avatar answered Jan 14 '23 11:01

Kraylog