Home  >  Q&A  >  body text

java - 无法访问已上传文件

阿神阿神2761 days ago729

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 13:29:41

    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

    reply
    0
  • Cancelreply