05 2019 档案

摘要:1.拦截器中的代码 2.ajax请求 加入 complete 处理 阅读全文
posted @ 2019-05-30 13:46 Sea_wxx 阅读(1944) 评论(0) 推荐(0) 编辑
摘要:@RequestMapping(value = "down",method = RequestMethod.GET) @ResponseBody public void down(HttpServletRequest request, HttpServletResponse response) throws IOException { //获取根目录 ... 阅读全文
posted @ 2019-05-29 13:50 Sea_wxx 阅读(164) 评论(0) 推荐(0) 编辑
摘要:启动项目java -jar /目录 &例如 nohup java -jar /data/wwwroot/springboot.kingsuper.net/demo.jar & 重新启动项目,要先将之前的端口杀死查询端口netstat -tunlp 杀死端口 kill -9 端口例如 kill -9 阅读全文
posted @ 2019-05-28 15:37 Sea_wxx 阅读(739) 评论(0) 推荐(0) 编辑
摘要:<if test="isChoiceness != null and isChoiceness != -1"> AND sa.is_choiceness = #{isChoiceness}</if> isChoiceness 是一个Integer 类型的值,所以只能判断是否是null 和是否是 数字 阅读全文
posted @ 2019-05-28 11:17 Sea_wxx 阅读(435) 评论(0) 推荐(0) 编辑
摘要:最近使用springboot打包上传的时候遇到一个问题,就是访问与jar同级别的文件,之前使用最多的是war形式,所以很好设置静态资源路径。 但是jar是看不到里面的文件夹的,所以把文件上传到与jar同级别的upload下,这样就需要在项目中设置upload也应该是静态资源。 关键代码 设置好之后, 阅读全文
posted @ 2019-05-28 09:26 Sea_wxx 阅读(2514) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示