
java
Echo_Hsu
这个作者很懒,什么都没留下…
展开
-
java stack中add 和 push的区别
最近在搞图的深度优先遍历。 遇到一个问题 就是stack 中的add和push的区别是啥。 也是先谷歌了一通,看的把我自己绕进去了。 还是打开源码看看把。 首先 Stack的add方法是从Vector继承来的 先看看底层实现把 Push()方法 可以看到push其实就是调用了Vector的addElement方法。 我们再进入到addElement方法看看 长这样 add方法 是不是很神奇。。一样的,只是最后返回值不一样,add返回布尔类型 而push则返回插入元素的类型。 ...原创 2020-06-24 17:04:44 · 6038 阅读 · 3 评论 -
使用Spring 自带的线程池报错 Error creating bean with name org.springframework.context.annotation.internalAsyn
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name org.springframework.context.annotation.internalAsyncAnnotationProcessor' defined in class path resource [org/springframework/scheduling/annotation/ProxyAsyn原创 2020-06-22 10:02:09 · 1250 阅读 · 0 评论 -
java.lang.IllegalStateException: Logback configuration error detected:
Disconnected from the target VM, address: '127.0.0.1:52550', transport: 'socket' Connected to the target VM, address: ‘127.0.0.1:52550’, transport: ‘socket’ Disconnected from the target VM, address: ‘127.0.0.1:52550’, transport: ‘socket’ java.lang.IllegalS原创 2020-06-16 15:51:59 · 2876 阅读 · 1 评论 -
idea创建maven工程报com.google.inject.CreationException: Unable to create injector不能创建工程
可能是装的maven版本太高了。。。 我的idea是17的,maven装了个最新的,然后退回到3.3.9就好了原创 2020-05-15 22:25:47 · 652 阅读 · 0 评论 -
Macbook配置Maven
1、首先打开下载网站https://maven.apache.org/download.cgi 2、选择 apache-maven-3.6.3-bin.tar.gz,.zip是给windows系统用的。 3、解压 4、修改maven连接的仓库 点开解压后的文件找到 conf 文件夹,打开settings.xml文件 找到标签,然后做下图修改,我这里把镜像源改成了阿里云的。 阿里云镜像网址是 https://maven.aliyun.com/repository/central mirrorOf: 就是指是原创 2020-05-15 20:05:00 · 300 阅读 · 0 评论