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