Can't load image with spring boot thymeleaf

后端 未结 4 850
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-18 15:42

I\'m very new to spring boot and following Guru spring framework tutorial.

My simple spring boot application runs successfully and my controller works fine. I have us

4条回答
  •  萌比男神i
    2020-12-18 15:49

    All the resources are stored in static folder and that is the default directory. You don't need to specify the relative path of the image you want to use. Just simply put the filename.

    example

提交回复
热议问题