Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Spring Cloud 2024.0.0 #3917

Open
leyou240 opened this issue Dec 4, 2024 · 7 comments
Open

Support Spring Cloud 2024.0.0 #3917

leyou240 opened this issue Dec 4, 2024 · 7 comments

Comments

@leyou240
Copy link

leyou240 commented Dec 4, 2024

我们鼓励使用英文,如果不能直接使用,可以使用翻译软件,您仍旧可以保留中文原文。另外请按照如下要求提交相关信息节省社区维护同学的理解成本,否则该讨论极有可能直接被忽视或关闭。
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.

Which Component
Support Spring Cloud 2024.0.0 needs Supported Boot Version: 3.4.0

Additional context
https://docs.spring.io/spring-cloud-release/reference/index.html

@ichenfeng
Copy link

Bean 'com.alibaba.cloud.nacos.NacosConfigAutoConfiguration' of type [com.alibaba.cloud.nacos.NacosConfigAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). The currently created BeanPostProcessor [nacosAnnotationProcessor] is declared through a non-static factory method on that class; consider declaring it as static instead.

@herodotus-ecosystem
Copy link

herodotus-ecosystem commented Dec 7, 2024

除了 Spring Boot 3.4.0 和 Spring Cloud 2024.0.0 版本绑定以外,没有什么大的变化。已试过,使用 Spring Boot 3.4.0、Spring Cloud 2024.0.0 和 Spring Cloud Alibaba 2023.0.1.2 可以正常运行。

目测,适配 Spring Cloud 2024.0.0 版本,Spring Cloud Alibaba 新建个分支,改个版本号即可。

@ForJ-W
Copy link

ForJ-W commented Dec 12, 2024

@autoConfiguration
@conditional(NacosConfigEnabledCondition.class)
public class CustomNacosConfigAutoConfiguration {

@Bean
public NacosConfigProperties nacosConfigProperties(ApplicationContext context) {
	if (context.getParent() != null && BeanFactoryUtils.beanNamesForTypeIncludingAncestors(context.getParent(),
			NacosConfigProperties.class).length > 0) {
		return BeanFactoryUtils.beanOfTypeIncludingAncestors(context.getParent(), NacosConfigProperties.class);
	}
	if (NacosConfigManager.getInstance() == null) {
		return new NacosConfigProperties();
	}
	else {
		return NacosConfigManager.getInstance().getNacosConfigProperties();
	}
}

@Bean
public static NacosAnnotationProcessor nacosAnnotationProcessor() {
	return new NacosAnnotationProcessor();
}

}

Copy link

This issue has been open 30 days with no activity. This will be closed in 7 days.

@github-actions github-actions bot added the stale label Jan 13, 2025
@mxp131011
Copy link

类型为 [com.alibaba.cloud.nacos.NacosConfigAutoConfiguration] 的 Bean 'com.alibaba.cloud.nacos.NacosConfigAutoConfiguration' 不符合所有 BeanPostProcessor 的处理条件(例如:不符合自动代理条件)。当前创建的 BeanPostProcessor [nacosAnnotationProcessor] 是通过该类上的非静态工厂方法声明的;请考虑将其声明为 static。

I am also encountering the same issue

@mxp131011
Copy link

Bean 'com.alibaba.cloud.nacos.NacosConfigAutoConfiguration' of type [com.alibaba.cloud.nacos.NacosConfigAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). The currently created BeanPostProcessor [nacosAnnotationProcessor] is declared through a non-static factory method on that class; consider declaring it as static instead.

请问你解决了吗;是怎么解决的;
Have you managed to resolve it, and if so, how did you go about it?

@github-actions github-actions bot removed the stale label Jan 16, 2025
@Marblog
Copy link

Marblog commented Jan 20, 2025

2025-01-20T15:18:57.807+08:00 WARN 4320 --- [worldtech-datalink] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.alibaba.cloud.nacos.NacosConfigAutoConfiguration' of type [com.alibaba.cloud.nacos.NacosConfigAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). The currently created BeanPostProcessor [nacosAnnotationProcessor] is declared through a non-static factory method on that class; consider declaring it as static instead.

springboot3.2.5
spring.cloud.version 2023.0.0
spring.cloud.alibaba.version 2023.0.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants