自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 收藏
  • 关注

原创 使用Spring(SpringBoot)进行自动装配链表(处理器链模式)

项目中用到了一个订单需要经过多层处理的业务,于是想到了使用链式处理。

2022-12-24 21:30:40 411 1

原创 Vue打包没有包含懒加载路由

解决Vue打包没有包含懒加载路由

2022-08-31 10:58:58 251

原创 SpringAOP+Redis实现分布式锁

使用SpringAOP+Redis实现分布式锁,加入了重试机制。

2022-06-14 11:20:25 425

原创 Spring Boot实现动态定时任务

项目需求有一个功能,可以添加多个定时触发一次的任务,并且这个触发时间在运行过程中(触发前)是更改的,于是想到使用动态定时任务。

2022-05-05 17:51:08 758

原创 Spring Boot + Spring Security + JWT + 微信小程序登录

Spring Boot + Spring Security + JWT + 微信小程序登录整合教程参考文章文章目录整合思想整合步骤1. AuthenticationToken2. AuthenticationProcessingFilter3. AuthenticationManager4. JWTFilter5. AuthenticationEntryPoint6. AuthenticationSuccessHandler7. 全局异常捕获8. WebSecurityConfig9. 开启全局方法.

2021-06-28 17:07:45 3835 2

原创 PlatformException (PlatformException(read_characteristic_error, unknown reason, may occur if readCha

flutter_blue插件调用characteristic.read方法报错Exception has occurred.PlatformException (PlatformException(read_characteristic_error, unknown reason, may occur if readCharacteristic was called before last read finished., null))解决办法在read之前判断有没有read权限if(cha.

2021-04-25 22:47:34 2671

原创 Flutter webview_flutter插件弹起键盘或输入框卡死问题解决(卡顿、闪屏)

安卓端使用混合webview根据官方介绍The WebView is relying on Platform Views to embed the Android’s webview within the Flutter app. By default a Virtual Display based platform view backend is used, this implementation has multiple keyboard. When keyboard input is requi

2021-04-20 21:09:24 2001

原创 hadoop Container [] is running 255195648B beyond the ‘VIRTUAL‘ memory limit

学习hadoop时出现了hadoop Container [] is running 255195648B beyond the ‘VIRTUAL’ memory limit的问题环境:1G1核的虚拟机。。。参考在yarn.xml中添加以下属性<property> <name>yarn.nodemanager.vmem-check-enabled</name> <value>false</value> <descr.

2021-03-27 10:30:21 243

原创 less使用数组遍历(递归)动态生成class

@colors : red blue;@colorsName : red , blue;@len : length(@colors);// wen条件判断.each-color(@index) when (@index <= @len) { // 获取名称 @name : extract(@colorsName , @index); // 拼接.color-名称 .color-@{name}{ // extract从数组从取值

2021-03-21 15:25:44 2351

原创 gulp-px2rem-plugin报错Cannot read property ‘forEach‘ of null

今天使用gulp-less+gulp-px2rem-plugin报了错,经测试后发现, 原因是我其中一个less文件编译的css为空(全是less函数也为空),使得gulp-px2rem-plugin报错(write callback called multiple times或者Cannot read property ‘forEach’ of null)解决办法:在gulp-px2rem-plugin源码index.js文件中26行加入空判断:array_style &&arr.

2021-03-21 11:13:39 386

原创 Flutter:unexpected element <queries> found in <manifest>.

引入了 images_picker: ^0.0.9 插件后,run时报错AAPT:error: unexpected element found in .不懂原生,不说原理,想知道的可以自己去研究研究~~以下是搜到的几个解决方案解决方法修改android/build.gradle的gradle依赖参考:https://www.jianshu.com/p/632dfa9fbb57https://stackoverflow.com/questions/65182767/i-the-err.

2021-03-09 17:29:26 473

原创 个人对int * [n]与int (*)[n]的粗浅理解

区别int * p [n]:[]优先级大于*,p与[]先结合,定义了一个含有n个int *类型元素的指针数组pint (* p)[n]:括号内先运算p与*先结合,定义了一个指针变量p,p指向一个含有n个int类型元素是数组奇怪的操作指针存放的就是地址这句话特别重要ip2是一个指针,他只关心地址,并不关心地址所在的空间是不是一个数组,甚至不在乎类型。。。int i = 2;int * ip1 = &i;char (* ip2)[4] = &i;printf("i

2021-01-26 00:30:41 1252

转载 Flutter从其他页面返回到当前页面时的监听

转自https://blog.csdn.net/sinat_17775997/article/details/106570011实现支持手势返回回传参数路由回调√√RouteAware√×deactivate××目录实现一:路由回调实现二:RouteAware实现三:重写State的deactivate方法实现一:路由回调Navigator.push(context, route).then((res) { // do some somethi.

2021-01-23 11:23:35 2353 1

原创 Flutter实现google登陆(gmail)

环境介绍插件平台AndroidIOS环境介绍系统:Windows 10IDE:Android Studio 3.5.2Flutter:1.22.2Dart:2.8.4Gradle:5.6.2插件google_sign_infirebase_auth平台Android前往Firebase创建项目侧边栏进入build -> Authentication -> Sign-in method,开启Google项侧边栏进入 Project Overview ,创建A.

2020-12-13 15:09:59 2023

原创 Flutter唤醒屏幕(Android)

本篇有用到混合开发,我不懂原生,粗略带过。。。本篇使用java作为Android语言,不是Flutter官方的Kotlin这里写目录标题Dart部分Android部分Dart部分创建MethodChannel与Andorid平台建立通信(频道名称可以自定义,但是要与android对应)/// 创建频道static const platform = const MethodChannel('samples.flutter.dev/test');使用MethodChannel发出任务Fut.

2020-11-23 13:18:06 1416

原创 Flutter自定义TextField高度

TextField设置isCollapsed = true自定义InputField的InputDecoration的contentPadding TextField( controller: controller, isCollapsed: true, contentPadding: EdgeInsets.symmetric(vertical: 20.rpx, horizontal: 15.rpx), )多去看官方文档和注释!!!/// .

2020-10-22 16:06:33 5859 1

原创 Json快速生成DartBean(dojo)

这标题可能参杂了点JAVA的习惯蛤本文主要使用quicktype使用方式命令行VSCode网站命令行npm下载npm i -g quicktype转换Json文件# quicktype [json文件路径] -o quicktype person.json -o person.dart注意命令行文件的路径就行VSCode下载Paste JSON as Code插件将json文件加入工作区Crtl+Shift+p,运行Open quicktype for Json.

2020-10-22 11:06:10 432

原创 Flutter中实现双击返回键退出APP

先来认识几个小知识点WillPopScopeflutter官方提供的widget,注册一个异步函数,用于捕获并处理用户的返回键操作(个人测试,无法捕获Navigator.of(context).pop()操作),可以允许或禁止本次操作。我一般是包在Scaffold外面WillPopScope( onWillPop : () async =>{ // 一些其他操作 return true; } child : Scaffold( body : Container() );

2020-10-20 16:17:17 1238

原创 StringMVC5更改响应Content-type

参考spring mvc content-type设置规则RequestMapping中produces属性作用在控制器的@RequestMapping的属性中添加produces = {“application/json;charset=UTF-8”}给控制器添加@ResponseBody@RequestMapping(value = "/fileupload" , produces = {"application/json;charset=UTF-8"})@ResponseBody.

2020-10-15 16:08:50 94

原创 Flutter中调用相机拍照、选择相册图片(视频)

Flutter中调用相机拍照、选择相册图片image_picker插件实现导入插件平台配置AndroidIOS使用image_picker插件实现导入插件image_picker: ^0.6.7+12 # 最新版本请在pub.dev中查看平台配置AndroidAndroid SDK 29+不需要配置Android SDK < 29修改AndroidManifest.xml文件<!-- 在application标签上添加 android:requestLegacyExte

2020-10-15 12:02:24 2559

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除