自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Leetcode137 Single Number II 数学等式解法

问题描述:Given anon-emptyarray of integers, every element appearsthreetimes except for one, which appears exactly once. Find that single one.Input: [2,2,3,2]Output: 3Input: [0,1,0,1,0,1,99]Output: 99思路:首先仿照 Single Number 相关解法,有等式[ 3∗(a+b+c)−(...

2020-11-18 14:50:01 129

原创 Springboot无法找到组件 Could not autowire. No beans of‘EmployeeMapper‘ type found

添加@Component注解后问题解决

2020-09-14 11:31:53 1194

原创 Mac 终端 -bash: service: command not found 解决方案

使用 Homebrew 提供的 services 替代如 $brew services start mysql

2020-09-11 11:42:12 5972 1

原创 spring boot2.0后配置自动执行schema.sql无效

spring.datasource.initialization-mode=always

2020-09-10 17:16:03 349

原创 Spring 中 ApplicationContext 报错: Could not autowire. No beans of ‘ApplicationContext‘ type found.

很可能是因为导包错误:修改为Spring的包后问题解决:

2020-09-03 17:23:10 420 1

原创 SpringBoot 绑定配置文件测试输出值为空

Person 类package com.kwok.springboot.bean;import org.springframework.boot.context.properties.ConfigurationProperties;import org.springframework.stereotype.Component;import java.util.Date;import java.util.List;import java.util.Map;/** * 将配置文件中的每一个

2020-09-03 10:02:17 408

原创 mysql没启动导致 ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘

使用 mysql -uroot -p 登录报错ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2),网上很多解决方案,最后发现是自己 mysql 没启动。。mysql.server start 启动后登录成功

2020-08-25 10:30:00 140

原创 VMware下Centos仅主机模式(host-only)设置静态IP后能ping通主机和从结点但ping不通外网的解决方案

打开控制面板,选择主机连接的网络右键属性,进行如下设置 而后返回vmware下的Centos ,ping www.baidu.com 

2018-10-13 10:44:33 2809

原创 JavaFX 实现打地鼠游戏

//import javafx.animation.Animation;import javafx.animation.PathTransition;import javafx.animation.FadeTransition;import javafx.animation.Timeline;import javafx.animation.KeyFrame;import javafx.applic...

2018-07-13 11:24:39 1732

空空如也

空空如也

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

TA关注的人

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