How does spring customize the interceptor?

wants to implement such a function through a custom interceptor: if the client requests that the file / website/img/abc.jpg exists, it will be returned, if it does not exist, the file will be created and returned. May I ask how to achieve it?


for access to static resources, filters are recommended. Interceptors are used to handle dynamic requests, which are too convenient to respond to static resources.


agrees with < Wu Qinghai >. You can consider using / website/img/abc to access the interface and the interface to determine whether the resource file exists: create a return if it does not exist, and return the file directly if it exists

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eab071-5ce3d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eab071-5ce3d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?