摘要: 1、添加自定义异常,继承RuntimeException,为什么继承RuntimeException呢?是因为我们的事务在RuntimeException异常下会发生回滚。 1 public class BusinessException extends RuntimeException{ 2 3 阅读全文
posted @ 2019-07-24 12:29 Rolay 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 1、maven引入包,排除默认日志 2、添加配置文件,放到resources下,启动项目,就可以记录日志了,相关配置的修改可在配置文件中操作。 1 <?xml version="1.0" encoding="UTF-8"?> 2 <configuration> 3 <appenders> 4 <!- 阅读全文
posted @ 2019-07-24 12:24 Rolay 阅读(545) 评论(0) 推荐(0) 编辑
摘要: @ServerEndpoint(value="/websocket/{authcode}/{appid}/{uniqueid}")// websocket连接点映射. 阅读全文
posted @ 2019-07-24 11:56 Rolay 阅读(4478) 评论(0) 推荐(0) 编辑