Which means ":. +" In `{param :. +} `Mean (java)?

What does :.+at mean {param:.+}in this set of code in java? I tried the search but I did not find any explanation. Someone who knows explain this to me. Thank you very much.

BatchFileController.java

@RequestMapping("/runbatchfileparam/{param:.+}")  
public ResultFormat runbatchFile(@PathVariable("param") String fileName) 
{  
RunBatchFile rbf = new RunBatchFile();  
return rbf.runBatch(fileName);  
}  
+4
source share
2 answers

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

Expression .+means at least one of the characters.

+9
source

, path .. , mongo . (Student.address.id). everathing , . spring :.+.

+1

Source: https://habr.com/ru/post/1690839/


All Articles