2020年6月11日
摘要: thymeleaf th:href url传递 参数 的问题 <a th:href="@{/index(user=${user},email=${email})}"></a> 和传统的写法,效果一样的。 <a th:href="/index?user=123&email=456"></a> 阅读全文
posted @ 2020-06-11 14:34 wuyicode 阅读(3396) 评论(0) 推荐(0) 编辑
摘要: 在找静态资源的时候。避免出现找不到文件,http 报 404的错误。其实就是 相对路径,绝对路径和项目部署的路径三者的区别。 推荐使用项目的部署路径${pageContext.request.contextPath} 阅读全文
posted @ 2020-06-11 14:32 wuyicode 阅读(575) 评论(0) 推荐(0) 编辑