Home > Back-end >  Cannot load images in spring mvc
Cannot load images in spring mvc

Time:02-18

I cannot load static images. Did I miss anything here?

Here is my servlet xml file

servlet.xml

enter image description here

Project structure

enter image description here

And this is on my page

enter image description here

CodePudding user response:

Move your resources folder from WEB-INF into WebContent folder.

It should be at the same level as WEB-INF folder, not inside it.

  • Related