0

Suppose I have a file.doc in my maven web project. I need to get the http url abount this file.doc The path is:

C:\Example\Book\resources\file.doc

Now I need to get the http url about this file, So I go in this path:

htpp://localhost:8080/Book/resources/file.doc

But I obtain 404 not found? Anyone can help me to understand how I get the http url about the resources?

Doflamingo19
  • 1,591
  • 4
  • 12
  • 32
  • 1
    There is no reason why the files on your disk would have an HTTP address unless you make it so there is a web server that decides to serve them. – kumesana Sep 27 '18 at 12:30
  • Yes I use tomcat! – Doflamingo19 Sep 27 '18 at 12:30
  • Tomcat won't magically give access to everything there is in your computer. If you want it to serve files, you need to tell it to in the ways it proposes. – kumesana Sep 27 '18 at 12:31

0 Answers0