首页 > 编程语言 >Nacos Java Spring boot微服务配置错误 Error creating bean with name ‘configurationPropertiesBeans

Nacos Java Spring boot微服务配置错误 Error creating bean with name ‘configurationPropertiesBeans

时间:2022-09-29 12:33:24浏览次数:52  
标签:creating Spring boot springframework maven spring org cloud

最近在学习微服务技术,在尝试Nacos的时候Java 程序出错,提示Bean错误,在重新配置spring boot 和nacos的版本后,错误解决,下面是我用的版本,供大家参考。

 

Error creating bean with name ‘configurationPropertiesBeans‘ defined in class path resource异常分析



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project [
<!ELEMENT project (modelVersion|parent|groupId|artifactId|version|name|description|properties|dependencies|build)*>
<!ATTLIST project
xmlns CDATA #REQUIRED
xmlns:xsi CDATA #REQUIRED
xsi:schemaLocation CDATA #REQUIRED>
<!ELEMENT modelVersion (#PCDATA)>
<!ELEMENT parent (groupId|artifactId|version|relativePath)*>
<!ELEMENT groupId (#PCDATA)>
<!ELEMENT artifactId (#PCDATA)>
<!ELEMENT version (#PCDATA)>
<!ELEMENT relativePath (#PCDATA)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT properties (java.version)*>
<!ELEMENT java.version (#PCDATA)>
<!ELEMENT dependencies (dependency)*>
<!ELEMENT dependency (groupId|artifactId|scope)*>
<!ELEMENT scope (#PCDATA)>
<!ELEMENT build (plugins)*>
<!ELEMENT plugins (plugin)*>
<!ELEMENT plugin (groupId|artifactId|version)*>
]>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<modules>
<module>order</module>
<module>stock</module>
<module>order-nacos</module>
<module>stock-nacos</module>
</modules>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.11.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.tulingxueyuan.springcloud</groupId>
<artifactId>springcloudalibaba</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>springcloudalibaba</name>
<description>springcloudalibaba</description>
<packaging>pom</packaging>
<properties>
<java.version>11</java.version>
<spring.cloud.alibaba.version>2.2.5.RELEASE</spring.cloud.alibaba.version>
<spring.boot.version>2.3.11.RELEASE</spring.boot.version>
<spring.cloud.version>Hoxton.SR8</spring.cloud.version>
<spring.boot.maven.version>2.7.4</spring.boot.maven.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>${spring.cloud.alibaba.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring.cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>

</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring.boot.maven.version}</version>
</plugin>
</plugins>
</build>

</project>

标签:creating,Spring,boot,springframework,maven,spring,org,cloud
From: https://www.cnblogs.com/managechina/p/16741051.html

相关文章

  • mybatis在spring mvc中的加载过程
    本地搭建了一套工程,把spring-5.2.x源码与mybatis-3.5.11源码做了整合,debug了一下mybatis-spring在springmvc中的加载过程。画了下面的图,删减了一些说明,图比较简练。后续......
  • SpringBoot中写前端代码JSP、HTML、thymeleaf
    为什么springboot不能很好的支持jsp?:https://www.zhihu.com/question/61385975在springboot中使用jsp:https://blog.csdn.net/cflsup/article/details/123089542>>freemak......
  • Spring启动过程中实例化部分代码的分析(Bean的推断构造方法)
    【1】前言实例化这一步便是在doCreateBean方法的  instanceWrapper=createBeanInstance(beanName,mbd,args);  这段代码中。 【2】对于实例化的疑问......
  • SpringBoot整合其他框架
    SpringBoot整合Junit实现步骤搭建SpringBoot工程引入starter-test起步依赖编写测试类添加测试相关注解@RunWith(SpringRunner.class)@SpringBootTest(classes=启......
  • Spring JDBC 数据访问
    SpringJDBC数据访问SpringJDBC是Spring所提供的持久层技术,它的主要目标是降低使用JDBCAPI的门槛,以一种更直接,更简介,更简单的方式使用JDBCAPI,在SpringJDBC里,仅......
  • SpringBoot系列——加载自定义配置文件
    Java开发过程中,一些配置信息不想写到application.properties里面去,想自己弄一个配置文件,然后加载。例子如下:Employee.java类核心代码:@Configuration//用来标注一个自定......
  • SpringMVC中的数据处理
    数据处理目录数据处理1、利用SpringMVC实现1.1无需视图解析器1.2配置了视图解析器2、SpringMVC处理参数2.1处理提交数据2.1.1提交的名称和处理方法的参数名一致2.1.1......
  • [Spring MVC] Controller接受参数问题,针对@RequestParam
    用实体类接收测试实体类publicclassTestEntity{privateStringname;privateIntegerage;//gettersettertoString}Controller代码@PostMapp......
  • 2022-09-28 第六小组 张宁杰 Spring框架_01
    bean的生命周期生命周期:从创建到消亡的完整过程bean生命周期:bean从创建到销毁的整体过程bean生命周期控制:在bean创建后到销毁前做一些事情具体描述初始化容器创建......
  • Spring MVC 中 DefaultServletHandlerConfigurer
     <mvc:default-servlet-handler/>这个SpringMVCxml文件的属性,主要是处理web项目的静态文件问题。每次请求过来,先经过 DefaultServletHttpRequestHandler判断是否是......