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

支持SpringBoot3.2吗 #265

Open
Stoneseraphic opened this issue Feb 29, 2024 · 2 comments
Open

支持SpringBoot3.2吗 #265

Stoneseraphic opened this issue Feb 29, 2024 · 2 comments

Comments

@Stoneseraphic
Copy link

image

@MG-Thomas
Copy link

同样的问题

@jackM5
Copy link

jackM5 commented May 20, 2024

我的解决方法:
1.在你的项目中resources增加META-INF.spring目录,新建org.springframework.boot.autoconfigure.AutoConfiguration.imports文件,加入org.yeauty.autoconfigure.NettyWebSocketAutoConfigure。
2.修改netty-websocket-spring-boot-starter源码,修改pojo下PojoMethodMapping类中getEndpointInstance方法如下:
Object getEndpointInstance() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {
Object implement = pojoClazz.getDeclaredConstructor().newInstance();
// AutowiredAnnotationBeanPostProcessor postProcessor = applicationContext.getBean(AutowiredAnnotationBeanPostProcessor.class);
// postProcessor.postProcessPropertyValues(null, null, implement, null);
AutowireCapableBeanFactory beanFactory = applicationContext.getAutowireCapableBeanFactory();
beanFactory.autowireBean(implement);
return implement;
}

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

No branches or pull requests

3 participants