-
Notifications
You must be signed in to change notification settings - Fork 97
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
springboot 3.1.4 集成openjob,无工作节点 #163
Comments
@Jinger-Yes 这个错误是server 节点检查错误,和你说这问题,无关。有其它错误吗 |
希望支持springboot3。 无工作站节点的原因:worker初始化时没有读取到application.yml配置 |
看源码找到原因,原因是部分注解改包名了导致初始化失败,详细见OpenjobWorkerAutoConfiguration,因为SpringBoot3.x中@javax.annotation.PostConstruct包名变更为@jakarta.annotation.PostConstruct。另外还有spring.factories的问题,见我之前写过的一篇文章:https://www.cnblogs.com/throwable/p/16950353.html |
已经提交PR |
@zjcscut 可以的 |
什么时间更新版本? |
System (please complete the following information):
linux
[e.g. linux, macOS, windows]17
[e.g.1.13
]1.1.1
[e.g.1.1.1
]Describe the bug
springboot 3.1.4 集成openjob,无工作节点,server报错
目前发现是未正确读取yml文件造成worker没有初始化
To Reproduce
application.yml 配置文件
Expected behavior
Screenshots
![image](https://private-user-images.githubusercontent.com/54651846/276095859-f7cc3343-5ace-46de-81ba-d2eefb58a171.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNzAwOTQsIm5iZiI6MTcyNjE2OTc5NCwicGF0aCI6Ii81NDY1MTg0Ni8yNzYwOTU4NTktZjdjYzMzNDMtNWFjZS00NmRlLTgxYmEtZDJlZWZiNThhMTcxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEyVDE5MzYzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJhZmM0YzY2MDIwNTM0M2MxNjBlNTU4MzcxZWUxYzcwOGUzMzE5N2VhYjkzM2Q5NzNiNjQwNmZjMjA4ZDdhMTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.1jOOoUu8oIEmLbzxA-RBdRujTPllAy4Z92pW4o0HQd4)
工作站节点:
Server报错日志:
![image](https://private-user-images.githubusercontent.com/54651846/276093336-aafc492e-1f25-4b31-91d8-00cbe84f01f8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNzAwOTQsIm5iZiI6MTcyNjE2OTc5NCwicGF0aCI6Ii81NDY1MTg0Ni8yNzYwOTMzMzYtYWFmYzQ5MmUtMWYyNS00YjMxLTkxZDgtMDBjYmU4NGYwMWY4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEyVDE5MzYzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk1MDBhNDg0MGU2YjQwMDNmNTcwYjJhZTk3MjA0NTVmMmE0NDFkNTk5M2I3NWE2YzFmMjNhOTAwZDI5NjQ3YzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.vNt-r4Qc0XUJmHf2ax5mOojYP78cj3KXbmb6iVYfMBc)
Additional context
The text was updated successfully, but these errors were encountered: