Home  >  Q&A  >  body text

java - Why does it report 404 when directly accessing static resources under webroot?

仅有的幸福仅有的幸福2712 days ago486

reply all(5)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-05-17 10:11:07

    Java paths are case-sensitive

    reply
    0
  • 怪我咯

    怪我咯2017-05-17 10:11:07

    Is it possible that your project has a virtual path set up so that it cannot be accessed

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-17 10:11:07

    1. First check whether your project has been started successfully.
    2. Check whether there is a.png file in the deployment directory

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-17 10:11:07

    First check whether tomcat starts successfully.
    Check whether the corresponding resource exists

    reply
    0
  • 黄舟

    黄舟2017-05-17 10:11:07

    Have you configured access blocking in the configuration file, resulting in resource files being inaccessible? Check the configuration in your web.xml carefully.

    reply
    0
  • Cancelreply