自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 谷歌浏览器被hao123绑定首页了

以下仅为个人经历,仅供参考1 打开谷歌浏览器,在地址栏中输入chrome://version23 将命令号内容复制粘贴到下图位置4 在最后放加上想要设定的网址 例如我要设置为百度: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --flag-switches-begin --flag-switches-end --enable-audio-service-sandbox --origin-tr...

2020-09-02 11:05:18 1934

原创 Could not find org.jetbrains.kotlin:kotlin-stdlib

ERROR: Could not download protobuf-java.jar (com.google.protobuf:protobuf-java:3.4.0): No cached version available for offline modeCould not find org.jetbrains.kotlin:kotlin-stdlib亲测有效方案:将对应文件中的该部分代码修改为(只修改对应部分即可):repositories { google()

2020-08-10 17:01:34 5682

原创 oracle数据库查询正在执行的sql

select b.sid, b.username, b.serial#, a.spid, b.paddr, c.sql_text, b.machinefrom v$process a, v$session b, v$sqlarea cwhere a.addr = b.paddrand b.sql_hash_value = c.hash_value;干掉正在执行的sqlalter system kill session 'sid,serial#'

2020-06-03 11:18:40 598

原创 196. 删除重复的电子邮箱

编写一个 SQL 查询,来删除Person表中所有重复的电子邮箱,重复的邮箱里只保留Id最小的那个。中途报错:You can't specify target table 'Person' for update in FROM clause注意 MySQL中删除和查询无法同时作用于一个表 需要使用子查询来避免正确结果:delete from Person where id not in ( select id from( ( s...

2020-05-20 17:41:37 166

原创 107. 二叉树的层次遍历 II

给定一个二叉树,返回其节点值自底向上的层次遍历。 (即按从叶子节点所在层到根节点所在的层,逐层从左向右遍历)例如:给定二叉树 [3,9,20,null,null,15,7],/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x;

2020-05-20 14:50:52 141

原创 如何查看系统版本

win10任务栏直接输入 winver发现然后点击就OK

2020-05-07 18:31:22 145

原创 double数值乘以100后精度增加的问题

问题代码:Double dou = Double.parseDouble("77.10")*100;String str = dou.toString();System.out.println(str); //7709.999999999999System.out.println(str.substring(0,dou.toString().indexOf("."))...

2020-04-23 22:55:19 3213

转载 定时任务cron表达式详解

转载自https://blog.csdn.net/fanrenxiang/article/details/80361582字段含义*:代表所有可能的值-:指定范围,:列出枚举 例如在分钟里,"5,15"表示5分钟和20分钟触发/:指定增量 例如在分钟里,"3/15"表示从3分钟开始,没隔15分钟执行一次?:表示没有具体的值,使用?要注意冲突L:表示last,例如星期中表示7...

2020-02-25 18:39:12 518

原创 读取含有中文的文件

InputStream inputStream = new FileInputStream("1.txt"); int c=-1; byte[] buffer = new byte[inputStream.available()]; while((c=inputStream.read(buffer))!=-1) { String s = new String(bu...

2019-10-08 17:35:35 201

原创 日期格式转换

SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");simpleDateFormat.setLenient(false);//日期严格转换 true为不严格Date start = simpleDateFormat.parse(start_date);日期格式转换,可以判断日期是否存在...

2019-09-26 17:40:13 117

原创 查看电脑上保存的git凭证

开始->控制面板->用户账户->管理Windows凭据

2019-09-02 15:38:32 6070

原创 查看电脑连接过的WiFi密码

win + R -> cmd -> 输入如下内容for /f "skip=9 tokens=1,2 delims=:" %i in ('netsh wlan show profiles') do @echo %j | findstr -i -v echo | netsh wlan show profiles %j key=clear

2019-07-31 13:38:15 238

原创 npm ERR! code EINTEGRITY

Vue项目报错m ERR! code EINTEGRITYnpm ERR! sha512-spKHSBQIxxS81N/O21WmuXA2F6wppUCsutpzenOeZzOCCJ5gEfcbqJP983IrpLXzYmXnMUa6J03SubcNPdKrlg== integrity checksum failed when using sha512: wanted sha512-sp...

2019-07-23 11:56:23 3616 2

原创 React中css-loader使用modules

React中识别css样式,模块化操作,样式对象的自定义格式,//只有css-loader后面可以追加modules,作用是生效模块化直接在css-loader后面追加参数报错使用如下即可正常:{test: /\.css$/, use :['style-loader',{loader: 'css-loader',options: {modules: {lo...

2019-07-13 20:40:35 2599

原创 Uncaught TypeError: this.get(…).querySelectorAll is not a function

Vue报错页面内容加载不全,是浏览器扩展插件导致的问题如果浏览器安装了Vue Devtools这个插件,将插件改为点击时读取数据就OK了

2019-05-06 15:12:03 11698 1

原创 el-checkbox点击事件阻止冒泡

本例子只使用过在element + Vueel-checkbox外层嵌套了 el-card 两个都有点击操作 通过@click.stop.native只触发el-checkbox的点击操作

2019-05-05 10:33:27 8211 2

原创 [Vue warn]: Method "watch" has type "object" in the component definition. Did you referen

[Vue warn]: Method "watch" has type "object" in the component definition. Did you reference the function correctly?发生这个的原因是在组件中写了一个空的watch把这个watch的代码删掉就ok...

2019-04-30 15:00:24 19643

原创 this.$refs.form.validate无法校验

一定要在所有包含判断的地方加入callback,否则this.$refs.form.validate不执行

2019-04-29 15:19:04 10451 5

原创 vscode报错

events.js:183 throw er; // Unhandled 'error' event端口被占用https://blog.csdn.net/m0_37791204/article/details/89466568

2019-04-28 14:36:30 470

原创 如何查看端口占用,并停止端口占用

1、在dos下,输入netstat -ano|findstr 8189,查看端口使用情况2、输入taskkill /pid 13064 /f停止端口占用

2019-04-23 09:54:35 322

原创 oracle中修改用户的密码

1.以Windows操作系统为例,打开命令提示符,输入命令sqlplus /nolog ,进入oracle控制台,并输入 conn /as sysdba;以DBA角色进入。2.连接成功后,输入“select username from dba_users”查看用户列表3.若修改某一个用户密码, 修改用户口令 格式为:alter user 用户名 identified by 新密...

2019-04-01 14:16:39 803

原创 Vue封装axios请求

1.引入axios2.设置请求头3.配置拦截器4.引用import axios from 'axios'import {MessageBox} from 'element-ui'import Vue from 'vue'Vue.prototype.$axios = axiosaxios.defaults.headers.post['Content-Type'] = 'ap...

2019-03-06 15:48:03 287

原创 Uncaught (in promise) Error: timeout of 30000ms exceeded

vue请求加上错误处理就ok

2019-03-06 15:41:45 44281 3

原创 spring-security-oauth2(四) 图片验证码

1、依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId></dependency><dependency> &

2019-03-06 10:15:59 1060

原创 com.google.code.kaptcha导入本地仓库

当依赖书写正确时,版本号变红,无法导入时,表示本地仓库缺少文件maven本地安装命令:(-Dfile后面是文件的全路径) mvn install:install-file -DgroupId=com.google.code -DartifactId=kaptcha -Dversion=2.3....

2019-02-28 19:03:00 2454 1

原创 mybatis报错Invalid bound statement (not found)

出了网上那些关于名称对应的,以及注解使用规范的之外mybatis: mapper-locations: classpath:mapper/*.xml <!-- 添加资源 --> <resources> <resource> <directory>src/main/...

2019-02-19 14:24:46 199

原创 【解决】Eclipse的alt+/失效

依次打开eclipse上面的windows ——preferences ——General —— Keys, 在Scheme的下面有一个搜索框,在搜索框里面输入“Content asist”(我的Eclipse在这个搜索框里不能输入,下面的按钮抢占了焦点,所以我选择了复制粘贴,注意搜索时注意大小写),选中“Content asist”这一项后,将Binding项改为“ALT+/”(按下“/”键即可...

2018-08-24 07:59:09 443

原创 Eclipse的汉化与反汉化

汉化: 直接从eclipse语言包下载界面(www.eclipse.org/babel/downloads.php)找对应版本如“Neon | Mars | Luna”, 点击neon跳转到http://download.eclipse.org/technology/babel/babel_language_packs/R0.14.0/neon/neon.php, 然后在...

2018-08-23 15:57:35 745

空空如也

空空如也

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

TA关注的人

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