摘要: 1、设置绝对路径 1、设置绝对路径 1、设置绝对路径 1、设置绝对路径 application.properties的配置 #静态资源对外暴露的访问路径 file.staticAccessPath=/upload/** #文件上传目录(注意Linux和Windows上的目录结构不同) #file.u 阅读全文
posted @ 2018-11-10 23:48 花拾夕 阅读(16589) 评论(3) 推荐(2)
摘要: 1、hibernate 5.2 之后,SQLQuery.class、setResultTransformer方法已作废,其用法如下: 替换后为: 阅读全文
posted @ 2018-11-10 23:39 花拾夕 阅读(9308) 评论(1) 推荐(2)
摘要: 使用th:style标签: 其中value是后台返回的值 阅读全文
posted @ 2018-11-10 17:51 花拾夕 阅读(10281) 评论(0) 推荐(0)
摘要: 比如在15:30:30之前: 或15:30:30之后 相等 阅读全文
posted @ 2018-11-10 17:43 花拾夕 阅读(11709) 评论(0) 推荐(0)
摘要: 1、跳转链接 在当前窗口打开 window.location.href="http://www.baidu.com" 等价于 <a href="baidu.com" target="_self">go baidu</a> window.location.href="http://www.baidu. 阅读全文
posted @ 2018-11-10 15:45 花拾夕 阅读(6183) 评论(0) 推荐(0)
摘要: 示例:<script type="text/javascript"> var myarr = new Array(3); myarr[0] = "I"; myarr[1] = "Love"; myarr[2] = "JS"; document.write(myarr.join()); </scrip 阅读全文
posted @ 2018-11-10 11:30 花拾夕 阅读(961) 评论(0) 推荐(0)