摘要: 在Spring—Mvc的xml文件中添加: <!-- thymeleaf模板--> <bean id="templateResolver" class="org.thymeleaf.spring4.templateresolver.SpringResourceTemplateResolver"> < 阅读全文
posted @ 2020-06-10 14:44 可达鸭给我冲鸭 阅读(861) 评论(0) 推荐(0) 编辑
摘要: <a th:href="${#httpServletRequest.getContextPath()}"></a> 如Web项目名称为Demo,那么${#httpServletRequest.getContextPath()}获取到的值为Demo 阅读全文
posted @ 2020-06-10 14:41 可达鸭给我冲鸭 阅读(1722) 评论(0) 推荐(0) 编辑