上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 31 下一页
摘要: 使用 startService启动服务 bindService绑定服务 然后unbindService解绑服务 service执行的任务会继续执行,比如播放音乐的服务 如果不使用startService 直接调用绑定 解绑后音乐就停止了 阅读全文
posted @ 2020-05-27 10:06 荣超 阅读(624) 评论(0) 推荐(0)
摘要: 、 双击signingReport 就会显示密钥信息 阅读全文
posted @ 2020-05-22 10:24 荣超 阅读(293) 评论(0) 推荐(0)
摘要: 不要重复开启或者关闭监听 开启和关闭是成对操作的 离开播放界面需要关闭所有监听 并且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)
摘要: public static <T> T jsonToBean(String json,Class<T> tClass){ try { //可以转换单引号 mapper.configure(JsonParser.Feature.ALLOW_SINGLE_QUOTES,true); //键可以不用引号包 阅读全文
posted @ 2020-04-26 18:38 荣超 阅读(1610) 评论(0) 推荐(0)
摘要: List<String> list = new ArrayList<>(); Set<String> set = new HashSet<>(); Map<String,String> map = new HashMap<>(); 1. 使用 线程安全的 Vector List<String> li 阅读全文
posted @ 2020-04-01 15:56 荣超 阅读(390) 评论(0) 推荐(0)
摘要: 使用工具类处理调用 直接调用就不会走代理了 @Component public class SpringContextUtil implements ApplicationContextAware { // Spring应用上下文环境 private static ApplicationContex 阅读全文
posted @ 2020-03-31 19:04 荣超 阅读(1318) 评论(0) 推荐(0)
摘要: 引入 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </dependency> <dependency> <group 阅读全文
posted @ 2020-03-30 14:14 荣超 阅读(304) 评论(0) 推荐(0)
摘要: 设置编码为utf-8 最好设置一下 我的刚开始没设置是正常的,换了台电脑就乱码了 Charset charset = StandardCharsets.UTF_8; @Bean public RestTemplate restTemplate(){ RestTemplate restTemplate 阅读全文
posted @ 2020-03-24 17:28 荣超 阅读(971) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 31 下一页