logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

JUC强大的辅助工具类

JUC中提供了一些辅助类,通过这些辅助类可以很好的解决线程数量过多时Lock锁的频繁操作。常用的三种辅助类有:• CountDownLatch: 减少计数• CyclicBarrier: 循环栅栏• Semaphore: 信号灯CountDownLatchCountDownLatch是一个同步工具类,用来进行线程同步协作,等待所有线程完成倒计时。CountDownLatch类可以设置一个计数器,然

#java
JVM与Java体系结构

Java vs C++Java本身借鉴了C++语言的优点,摒弃了一些缺点。主要的区别在于内存动态分配、垃圾收集技术垃圾收集机制为我们打理了很多繁琐的工作,大大提高了开发的效率,但是,垃圾收集也不是万能的,懂得JVM内部的内存结构、工作机制,是设计高扩展性应用和诊断运行时问题的基础,也是Java工程师进阶的必备能力。Java 生态圈Java是目前应用最为广泛的软件开发平台之一。随着Java以及Jav

#java
docker: Error response from daemon: Conflict. The container name is already in use by container You

docker: Error response from daemon: Conflict. The container name "/u1" is already in use by container "220980332c82079bd5b89b4129e8f5e77dba32ee3c0d2b0da51c961c00f39771". You have to remove (or rename)

#docker
Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception is java.lang.NullPointerEx

因为Springfox 使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X以上使用的是PathPatternMatcher。

文章图片
#java
IDEA错误:Cannot start compilation: the output path is not specified for module “XXX“.

错误是发生在从github上checkout自己的项目时。因为没有将配置文件一起上传,所以在运行java程序时有了这个报错:Cannot start compilation: the output path is not specified for module “Test”. Specify the output path in Configure Project.其实这个错误是因为没有...

#intellij-idea#r语言#java
Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception is java.lang.NullPointerEx

因为Springfox 使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X以上使用的是PathPatternMatcher。

文章图片
#java
Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception is java.lang.NullPointerEx

因为Springfox 使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X以上使用的是PathPatternMatcher。

文章图片
#java
Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception is java.lang.NullPointerEx

因为Springfox 使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X以上使用的是PathPatternMatcher。

文章图片
#java
ResourceHttpRequestHandler cannot be cast to HandlerMethod

报错:java.lang.ClassCastException: org.springframework.web.servlet.resource.ResourceHttpRequestHandler cannot be cast to org.springframework.web.method.HandlerMethod原因就在于,Spring boot 2.0对静态资源也进行了拦截,当拦截器

ES:NoSuchMethodError: org.elasticsearch.client.Request.addParameters(Ljava/util/Map;)V

在项目pom.xml中加入依赖```java<dependency><groupId>org.elasticsearch.client</groupId><artifactId>elasticsearch-rest-high-level-client</artifactId><version>7.6.1</version

#elasticsearch#java#搜索引擎
暂无文章信息