1.目录下创建 appsettings.json文件 内容: { "ConnectionStrings": { "DefaultConnection": "Databases = InMemory;", "Myname": "Lihuahua;" } } 2.创建Settings文件夹下,新增类 类 ...
分类:
Web程序 时间:
2020-10-29 09:31:39
阅读次数:
35
打开系统相册:打开相册部分机型黑屏【小米9,系统10】 //打开系统相册浏览照片 val intent = Intent() intent.action = Intent.ACTION_MAIN intent.addCategory(Intent.CATEGORY_APP_GALLERY) cont ...
分类:
其他好文 时间:
2020-10-29 09:21:11
阅读次数:
17
@Test public void b() { int[] arr = new int[]{1, 2, 3, 4, 5, 4, 3, 2, 1}; int start = 0; int end = arr.length - 1; while (start <= end) { if (arr[star ...
分类:
编程语言 时间:
2020-10-29 09:20:36
阅读次数:
23
1、导入坐标<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId> <version>Greenwich ...
分类:
其他好文 时间:
2020-10-27 11:35:08
阅读次数:
18
1.启动数据库 1./etc/init.d/mysqld start > mysqld_safe > mysqld 2.systemctl start mysqld > mysqld_safe > mysqld 3.mysqld_safe --defaults-file=/etc/my.cnf & ...
分类:
数据库 时间:
2020-10-26 11:40:08
阅读次数:
30
Java的多线程 1. 通过Thread的子类 需要覆写 Thread 的public void run()方法 public class Test { public static void main(String[] args) { new MyThread("a").start(); new M ...
分类:
编程语言 时间:
2020-10-26 11:05:38
阅读次数:
24
简介本文主要介绍Spring系列Springboot整合quarter定时任务,大致分为三个部分:添加jar包、创建一个定时任务的配置类、创建具体执行的任务,希望看完本文后对大家有所帮助。
分类:
编程语言 时间:
2020-10-24 11:51:36
阅读次数:
52
Alertmanager基于Webhook集成钉钉告警
分类:
其他好文 时间:
2020-10-24 11:44:43
阅读次数:
32
原文 ionic 现在已经正式支持vue了(而且是3) 全局安装或升级ionic-cli: npm install -g @ionic/cli@latest 然后就可以创建项目了,跟之前用ionic创建angular项目差不多,以项目名myApp为例: ionic start myApp blank ...
分类:
其他好文 时间:
2020-10-24 10:01:50
阅读次数:
27
@echo off ping 127.0.0.1 -n 5 > nul start D:\TestOnly\TestOnly\bin\Debug\TestOnly.exe 保存文件后缀为.bat 执行ping指令5分钟后启动程序 ...