摘要: @ControllerAdvice @Slf4j public class CommonExceptionHandler { /** * 统一异常处理 */ @ExceptionHandler(Exception.class) @ResponseBody @ResponseStatus(code = HttpStatus.INTERNAL_S... 阅读全文
posted @ 2019-04-19 15:17 暮色听雨声 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 只是简单的校验了一个签名字符串 阅读全文
posted @ 2019-04-18 21:57 暮色听雨声 阅读(539) 评论(0) 推荐(0) 编辑
摘要: 第一步:在maven中加入devtools的依赖(这里我使用的是maven来管理项目) 第二步:在application.properties中设置禁用模板引擎缓存 第三步:修改IDEA的设置 点击 Help –> Find Action..,或使用快捷键 Ctrl+Shift+A来打开 Regis 阅读全文
posted @ 2018-01-01 16:35 暮色听雨声 阅读(656) 评论(0) 推荐(0) 编辑
摘要: 1 package com; 2 3 public class Link { 4 5 private class Node{ 6 private Object node; 7 private Node next; 8 9 public Node(Object node){ 10 ... 阅读全文
posted @ 2017-09-07 10:48 暮色听雨声 阅读(173) 评论(0) 推荐(0) 编辑
摘要: mysql -uroot -p 输入密码; 显示所有数据库 show databases; 选择库mysql use mysql; 查看所有用户 select * from user\G; 创建新用户 grant all privileges on *.* to '用户名'@'可登录主机' iden 阅读全文
posted @ 2017-02-14 12:45 暮色听雨声 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 首先说一下我的包 commons-pool2-2.0.jar jedis-2.7.2.jar spring-data-redis-1.4.2.RELEASE.jar tomcat-redis-session-manager1.2.jar 属性文件 redis.properties 然后是配置文件 r 阅读全文
posted @ 2016-09-28 16:01 暮色听雨声 阅读(6317) 评论(0) 推荐(2) 编辑
摘要: var myDate = new Date();myDate.getYear(); //获取当前年份(2位)myDate.getFullYear(); //获取完整的年份(4位,1970-????)myDate.getMonth(); //获取当前月份(0-11,0代表1月)myDate.getDa 阅读全文
posted @ 2016-03-07 10:10 暮色听雨声 阅读(432) 评论(0) 推荐(0) 编辑
摘要: OS error code 1: Operation not permittedOS error code 2: No such file or directoryOS error code 3: No such processOS error code 4: Interru... 阅读全文
posted @ 2016-01-15 21:22 暮色听雨声 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 一直在使用js相关的东西,但很少作总结,今天遇到操作js数组的一些问题,对js的数组有了更进一步的认识!1、创建数组var array = new Array();var array = new Array(size);//指定数组的长度var array = new Array(item1,ite... 阅读全文
posted @ 2016-01-15 17:27 暮色听雨声 阅读(856) 评论(0) 推荐(0) 编辑
摘要: document.forms["tableForm"].elements["paramJson"].value = JSON2.stringify(tdata); document.forms["tableForm"].action = "${ctx}/portal/userservice/ser... 阅读全文
posted @ 2016-01-13 11:07 暮色听雨声 阅读(751) 评论(0) 推荐(0) 编辑