System.out.println("根目录:"+request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort());
<div th:text="${#httpServletRequest.getScheme() + '://' + #httpServletRequest.getServerName() + ':' + #request.getServerPort()}"></div> // http://127.0.0.1:80