- 博客(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 191
原创 Springboot无法找到组件 Could not autowire. No beans of‘EmployeeMapper‘ type found
添加@Component注解后问题解决
2020-09-14 11:31:53 1230
原创 Mac 终端 -bash: service: command not found 解决方案
使用 Homebrew 提供的 services 替代如 $brew services start mysql
2020-09-11 11:42:12 6153 1
原创 spring boot2.0后配置自动执行schema.sql无效
spring.datasource.initialization-mode=always
2020-09-10 17:16:03 387
原创 Spring 中 ApplicationContext 报错: Could not autowire. No beans of ‘ApplicationContext‘ type found.
很可能是因为导包错误:修改为Spring的包后问题解决:
2020-09-03 17:23:10 482 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 447
原创 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 157
原创 VMware下Centos仅主机模式(host-only)设置静态IP后能ping通主机和从结点但ping不通外网的解决方案
打开控制面板,选择主机连接的网络右键属性,进行如下设置 而后返回vmware下的Centos ,ping www.baidu.com
2018-10-13 10:44:33 2837
原创 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 1751
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人