Actually, your description of the problem is not very clear. According to my understanding, there are some images in a certain directory of your java project. If you want to directly use the default domain name and image name, you cannot access the images
An important question is whether there are filters for separate processing of static resources in your project
Because no matter what framework you use, requests like http://xxx.b0.uppaiyun.com/sample.jpeg will be parsed by the framework and will not be accessed directly as static resources, so you can add filters to filter all Files ending in .jpg will be treated as static resources
Actually, your description of the problem is not very clear. According to my understanding, there are some images in a certain directory of your java project. If you want to directly use the default domain name and image name, you cannot access the images
An important question is whether there are filters for separate processing of static resources in your project
Because no matter what framework you use, requests like http://xxx.b0.uppaiyun.com/sample.jpeg will be parsed by the framework and will not be accessed directly as static resources, so you can add filters to filter all Files ending in .jpg will be treated as static resources