Skip to content

spring.factories文件里面指定的EnvironmentPostProcessor错误 #4103

@baifachuan

Description

@baifachuan

我们鼓励使用英文,如果不能直接使用,可以使用翻译软件,您仍旧可以保留中文原文。另外请按照如下要求提交相关信息节省社区维护同学的理解成本,否则该讨论极有可能直接被忽视或关闭。
We recommend using English. If you are non-native English speaker, you can use the translation software. We recommend using English. If you are non-native English speaker, you can use the translation software. In addition, please submit relevant information according to the following requirements to save the understanding cost of community maintenances, otherwise the discussion is very likely to be ignored or closed directly.

Image

这里没有更新,实际上是: org.springframework.boot.EnvironmentPostProcessor,现在启动就会报错:

Caused by: java.lang.IllegalArgumentException: Class [com.alibaba.cloud.nacos.configdata.NacosConfigDataMissingEnvironmentPostProcessor] is not assignable to factory type [org.springframework.boot.env.EnvironmentPostProcessor]
	at org.springframework.util.Assert.isTrue(Assert.java:136)
	at org.springframework.core.io.support.SpringFactoriesLoader.instantiateFactory(SpringFactoriesLoader.java:219)
	... 40 common frames omitted
Disconnected from the target VM, address: '127.0.0.1:49517', transport: 'socket'

Which Component
eg. Nacos Discovery, Sentinel

Describe the bug
A clear and concise description of what the bug is.

Simplest demo
The URL of the simplest demo to reproduce the problem.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.
e.g. MacOS 、Java8 、 Version 0.2.1.RELEASE

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions