摘要: 不要重复开启或者关闭监听 开启和关闭是成对操作的 离开播放界面需要关闭所有监听 并且currentItem需要设置置为nil 增加标识判断,开启监听把标识设置为true 关闭监听时如果标识为true才调用关闭监听操作 或者可以使用try catch 包裹 开启和关闭 监听的操作 阅读全文
posted @ 2020-04-28 16:36 荣超 阅读(715) 评论(0) 推荐(0)
摘要: @EnableCaching //启动spring缓存注解 @Configuration public class RedisConfig { @Bean public RedisTemplate<String,Object> redisTemplate(RedisConnectionFactory 阅读全文
posted @ 2020-04-28 16:09 荣超 阅读(699) 评论(0) 推荐(0)
摘要: 引入jwt包 <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt</artifactId> <version>0.9.1</version> </dependency> 签名和解析 String token = Jwts. 阅读全文
posted @ 2020-04-28 15:51 荣超 阅读(223) 评论(0) 推荐(0)