下面两种方法是一样的

<div th:text="${#httpServletRequest.getRequestURL() +'?'+ #httpServletRequest.getQueryString() }"></div>
<div th:text="${#httpServletRequest.requestURL +'?'+ #httpServletRequest.queryString }"></div>

#httpServletRequest 标签还有很多相关的方法, 自己试试吧

 

原创文章,欢迎转载,转载请注明出处!

相关文章:

  • 2022-12-23
  • 2021-12-23
  • 2021-11-11
  • 2022-12-23
  • 2021-11-22
  • 2021-06-04
猜你喜欢
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
  • 2021-07-16
  • 2021-11-23
相关资源
相似解决方案