JSR-330 ‘javax.inject.Inject‘ annotation found and supported for autowiring

简介: 这篇文章讨论了在Spring Boot项目中遇到的JSR-330 `javax.inject.Inject`注解相关问题,以及如何解决因版本不兼容导致服务注册失败的问题。

前言

在运行分布式微服务项目的时候,报的一个错。nacos中也没有注册成功单个微服务。什么问题都能给我遇到、就是版本问题、查看SpringBoot和SpringCloud的版本。gitbug上搜了看看,就是版本问题

搜索

在这里插入图片描述
在这里插入图片描述

解决

在pom文件中修改版本信息
在这里插入图片描述

成功启动
在这里插入图片描述

相关文章
|
5月前
Error:(56, 18) 错误: com.newCallblack.callshow.util.DownloadUtil cannot be provided without an @Inject
Error:(56, 18) 错误: com.newCallblack.callshow.util.DownloadUtil cannot be provided without an @Inject
25 0
IDEA添加Swagger2:Parameter 0 of method linkDiscoverers in org. springframework hateoas.config.Hateoasconfiguration required a single bean, but 15 were found:
IDEA添加Swagger2:Parameter 0 of method linkDiscoverers in org. springframework hateoas.config.Hateoasconfiguration required a single bean, but 15 were found
|
4月前
|
Java API 数据处理
Java Bean参数验证:深入探索javax.validation.constraints注解
Java Bean参数验证:深入探索javax.validation.constraints注解
121 0
|
设计模式 Java 测试技术
【注解使用】使用@Autowired注解警告Field injection is not recommended
【注解使用】使用@Autowired注解警告Field injection is not recommended
269 0
|
Java Spring
required a bean of type ‘org.springframework.web.client.RestTemplate‘ that could not be found.
required a bean of type ‘org.springframework.web.client.RestTemplate‘ that could not be found.
required a bean of type ‘org.springframework.web.client.RestTemplate‘ that could not be found.
|
API
The bean ‘api‘, defined in class path resource [com/common/swagger/SwaggerAutoConf
The bean ‘api‘, defined in class path resource [com/common/swagger/SwaggerAutoConf
138 0
The bean ‘api‘, defined in class path resource [com/common/swagger/SwaggerAutoConf
javax.validation.constraints注解
javax.validation.constraints注解
241 0
|
Java Spring
Regarding @Inject annotation
Regarding @Inject annotation
Regarding @Inject annotation
|
Java Spring
SpringBoot中@ConfigurationProperties提示:Configuration Annotation Processor not found in classpath
SpringBoot中@ConfigurationProperties提示:Configuration Annotation Processor not found in classpath
384 0
|
Android开发 开发者 测试技术
Support Annotation Library注解使用详解
一.Support Annotation Library能做什么 Support Annotation Library包含一系列的元注解,能够帮助开发者在编译期间发现可能存在的Bug,另外Android Studio本身就支持Annotation Library所以开发者无需再次添加依赖。
1204 0