如何使用 thymeleaf 在页面的源代码中打印 mensagens?

How to print mensagens in the source code of the page using thymeleaf?

这是我使用 jsp 和 jstl 的代码:

 <!-- 
        Failed to access a URL: ${url}
        Exception: ${exception}
     -->

如何使用 Thymeleaf 做同样的事情? 下面这段代码不起作用:

  <--  <p>Failed to access a URL: <span  th:text="${ url}"></span></p> 
    <p>Exception: <span th:text="${exception}"></span></p> -->

当我不发表评论时,它会在页面上显示消息:

Failed to access a URL: http://localhost:8080/blog-spring-thymeleaf/auth/login

Exception: org.springframework.web.servlet.NoHandlerFoundException: No handler found for GET /blog-spring-thymeleaf/auth/login

使用内联表达式,双括号:

<!-- 
        Failed to access a URL: [[${url}]]
        Exception: [[${exception}]]
    -->