In Springmvc, when a path name is obtained using @pathvariable with a GET request, if there is a decimal point on the path name, the content after the decimal point is not obtained and is intercepted by spring.
For example, I get a file, the path is localhost:8080/file/test.jpg, through @pathvariable get test.jpg, if do not do any processing, the result obtained is test.
There are two ways to handle this, one is to add a. jpg at the end of the path at the time of the request. Other, such as by address localhost:8080/file/file.jpg.jpg or localhost:8080/file/ File.jpg.qwe can be obtained normally;
The second is through spring's regular expression, the requestmapping is @requestmapping ("/file/{filename}"), after processing is @requestmapping ("/file/{ filename:.+} ")
The SPRINGMVC request uses @pathvariable to get the file name and exists in the file name. The problem that caused the path to be intercepted