06 2019 档案
摘要:首先开启后台任务 使用设置后台任务触发的时机 application.setMinimumBackgroundFetchInterval(UIApplication.backgroundFetchIntervalMinimum) func application(_ application: UIA
阅读全文
摘要:pod 'Alamofire' import Alamofire let headers:HTTPHeaders = [ "aa":"bb" ] let parameters = [ "name":"test" ] request(url, method: .get, parameters: par
阅读全文
摘要:引入相关pom <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>
阅读全文
摘要:首先需要在(app)build.gradle 的dependencies里面引入 implementation 'com.google.android.material:material:1.0.0' 新建MainActivity找到对应的xml 加入viewpager 和 BottomNaviga
阅读全文
摘要:pod 'ksyhttpcache' 桥接文件 引入 #import <KSYHTTPCache/KSYHTTPProxyService.h> 带appdelegate里初始化 KSYHTTPProxyService.sharedInstance()?.startServer() let proxy
阅读全文
摘要:首先引入需要的pom <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-spring-boot-web-starter</artifactId> <version>1.4.1</version> </dependen
阅读全文
摘要:首先引入相关pom <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency> <group
阅读全文
摘要:查找是否包含字串 查询是否包含 #{name} 片段 这里有包含所以返回true String context = "select * from t_user where (name = #{name} or username = #{name}) and age > #{age}"; String
阅读全文
摘要:安装erlang 10.4 和 rabbitmq 3.7.5 然后关闭rabbitmq服务 然后设置 erlang和rabbitmq的环境变量 ERLANG_HOME=erlang安装目录 RABBITMQ_SERVER=rabbitmq的安装目录 path 最后面添加%ERLANG_HOME%\b
阅读全文