Inserting an image from local directory in thymeleaf spring framework (with maven)

前端 未结 6 1508
北荒
北荒 2020-12-09 17:19

I have developed a project using this link: https://spring.io/guides/gs/serving-web-content/ I used maven to develop above project.

I have two html files under this.

6条回答
  •  粉色の甜心
    2020-12-09 17:50

    Who retrieve link dynamically use this pattern

    Avatar
    

    if you use like this (${theUser.avatar}) it will add ? in above version link look like this: /resources/images/avatars/photoname.png

提交回复
热议问题