草庐IT

gollum_starters

全部标签

spring-boot-starter-data-elasticsearch 版本踩坑 天坑

spring-boot-starter-data-elasticsearch版本踩坑,巨坑!(各种连接异常) org.springframework.boot spring-boot-starter-data-elasticsearch 接入后,项目总是跑不起来我的报错部分内容:Exceptioninthread"I/Odispatcher1"java.lang.AssertionErrorCloseableHttpAsyncClientBase$166run-I/Oreactorterminatedabnormallyorg.apache.http.nio.reactor.

spring-boot-starter-data-elasticsearch 版本踩坑 天坑

spring-boot-starter-data-elasticsearch版本踩坑,巨坑!(各种连接异常) org.springframework.boot spring-boot-starter-data-elasticsearch 接入后,项目总是跑不起来我的报错部分内容:Exceptioninthread"I/Odispatcher1"java.lang.AssertionErrorCloseableHttpAsyncClientBase$166run-I/Oreactorterminatedabnormallyorg.apache.http.nio.reactor.

Cannot resolve org.springframework.cloud:spring-cloud-starter-netflix-eureka-server:unknown

前言:启动eureka项目,发现右侧maven中的项目dependencies报红,reimport也没用,经排查springcloud和springboot版本号没问题。SpringCloud 启动类也是报错,@EnableEurakaServer注入失败一、本地maven配置、仓库下载 D:\maven\repository aliyun aliyunMaven central http://maven.aliyun.com/nexus/content/groups/public/ jdk-1.8 true 1.8

Cannot resolve org.springframework.cloud:spring-cloud-starter-netflix-eureka-server:unknown

前言:启动eureka项目,发现右侧maven中的项目dependencies报红,reimport也没用,经排查springcloud和springboot版本号没问题。SpringCloud 启动类也是报错,@EnableEurakaServer注入失败一、本地maven配置、仓库下载 D:\maven\repository aliyun aliyunMaven central http://maven.aliyun.com/nexus/content/groups/public/ jdk-1.8 true 1.8

druid和druid-spring-boot-starter 的区别与报错Cannot resolve configuration property ‘spring.datasource.xxx解决

druid官方文档:https://github.com/alibaba/druidhttps://github.com/alibaba/druid/wikidruidmaven仓库https://mvnrepository.com/artifact/com.alibaba/druid一、druid和druid-spring-boot-starter区别分析参考文章:https://www.cnblogs.com/dxiaodang/p/14571590.html主要原因还是要不要手动写配置类,springboot的使用auto帮我们封装好了属性值描述如下:作用是一样的,都是连接池提供连接,里

druid和druid-spring-boot-starter 的区别与报错Cannot resolve configuration property ‘spring.datasource.xxx解决

druid官方文档:https://github.com/alibaba/druidhttps://github.com/alibaba/druid/wikidruidmaven仓库https://mvnrepository.com/artifact/com.alibaba/druid一、druid和druid-spring-boot-starter区别分析参考文章:https://www.cnblogs.com/dxiaodang/p/14571590.html主要原因还是要不要手动写配置类,springboot的使用auto帮我们封装好了属性值描述如下:作用是一样的,都是连接池提供连接,里

Spring Boot开发自定义的starter

目录一、SpringBoot的starter概述二、自定义starter的命名规则三、自定义starter实战1.创建spring工程 2.修改pom.xml 3.编写配置类4.安装到本地maven仓库5.在其他项目中引入6.测试一、SpringBoot的starter概述        SpringBoot中的starter是一种非常重要的机制,能够抛弃以前繁杂的配置,将其统一集成进starter,应用者只需要在maven中引入starter依赖,SpringBoot就能自动扫描到要加载的信息并启动相应的默认配置。starter让我们摆脱了各种依赖库的处理,需要配置各种信息的困扰。Sprin

Spring Boot开发自定义的starter

目录一、SpringBoot的starter概述二、自定义starter的命名规则三、自定义starter实战1.创建spring工程 2.修改pom.xml 3.编写配置类4.安装到本地maven仓库5.在其他项目中引入6.测试一、SpringBoot的starter概述        SpringBoot中的starter是一种非常重要的机制,能够抛弃以前繁杂的配置,将其统一集成进starter,应用者只需要在maven中引入starter依赖,SpringBoot就能自动扫描到要加载的信息并启动相应的默认配置。starter让我们摆脱了各种依赖库的处理,需要配置各种信息的困扰。Sprin

Please set spring.main.web-application-type=reactive or remove spring-boot-starter-web dependency.

一、问题在启动springcloud的gateway模块的时候报错Pleasesetspring.main.web-application-type=reactiveorremovespring-boot-starter-webdependency.二、问题产生的原因gateway组件中的spring-boot-starter-webflux和springboot作为web项目启动必不可少的spring-boot-starter-web出现冲突。三、解决方案(任选一种就可以)3.1注释pom.xml内容在gateway的pom文件上注释掉spring-boot-starter-web代码   

Please set spring.main.web-application-type=reactive or remove spring-boot-starter-web dependency.

一、问题在启动springcloud的gateway模块的时候报错Pleasesetspring.main.web-application-type=reactiveorremovespring-boot-starter-webdependency.二、问题产生的原因gateway组件中的spring-boot-starter-webflux和springboot作为web项目启动必不可少的spring-boot-starter-web出现冲突。三、解决方案(任选一种就可以)3.1注释pom.xml内容在gateway的pom文件上注释掉spring-boot-starter-web代码