摘要: 1 添加依赖 阅读全文
posted @ 2019-05-29 14:29 旅行的青蛙 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 查询七天内的数据 阅读全文
posted @ 2019-05-29 14:20 旅行的青蛙 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 前端页面部署在nginx 上 ,后端代码部署在服务器上 ,前端访问后台会出现跨域问题 新建一个过滤器 阅读全文
posted @ 2019-05-29 13:47 旅行的青蛙 阅读(816) 评论(0) 推荐(0) 编辑
摘要: @ResponseBody @RequestMapping("/initRule") public Result initRule(String ruleName, HttpServletRequest request){ try { HvacUser user=userInfoUtils.getUserinfoFromRequest(r... 阅读全文
posted @ 2019-05-29 12:28 旅行的青蛙 阅读(650) 评论(0) 推荐(0) 编辑
摘要: 1 js里 定义var contextPath="http://localhost:8081"; 2 其他页面引入js url: contextPath+"/home/getequipmentList", 阅读全文
posted @ 2019-05-29 11:01 旅行的青蛙 阅读(1127) 评论(0) 推荐(0) 编辑
摘要: 1.java后端 放置cookie cookie = new Cookie("cookiename","value"); cookie.setMaxAge(3600); //设置路径,这个路径即该工程下都可以访问该cookie 如果不设置路径,那么只有设置该cookie路径及其子路径可以访问 coo 阅读全文
posted @ 2019-05-29 11:00 旅行的青蛙 阅读(5316) 评论(0) 推荐(0) 编辑