-1
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8"/>
<title>Hello Thymeleaf!</title>
</head>
<body>
<p th:text="'Hello, ' + ${name} + '!'" />
<img th:src="@{data:image/jpeg;base64, /9j/4AAQSkZJRgABAgAAAQABAAD/7QCEUGhvdG9zaG9wI...
}">
</body>
</html>
我顯示被轉換爲Base64(MIME類型轉換)格式的圖像,我使用Thymeleaf的模板,能有人弄清楚發生了什麼?異常解析文檔的錯誤,而使用Thymeleaf
請給我們關於例外的更多信息。你有堆棧跟蹤或什麼? –
白色標籤錯誤頁面 此應用程序沒有顯式映射/錯誤,所以您將此視爲後備。 Mon Oct 09 12:44:16 IST 2017 有一個意外的錯誤(type = Internal Server Error,status = 500)。 異常解析文檔:template =「hello」,第15行 - 第3列 –
我正在渲染這個HTML文件從春季啓動Java項目使用百里香葉作爲模板@BenjaminSchüller –