<a th:href="${#httpServletRequest.getContextPath()}"></a>

如Web项目名称为Demo,那么${#httpServletRequest.getContextPath()}获取到的值为Demo

相关文章:

  • 2021-11-27
  • 2021-09-04
  • 2021-09-11
猜你喜欢
  • 2022-12-23
  • 2021-05-17
  • 2021-12-28
  • 2021-11-18
  • 2021-11-18
  • 2021-07-14
  • 2021-11-27
相关资源
相似解决方案