Can I Use Ray to Invoke Java Tasks in the Spring Boot Framework?

I have a Java remote task function that needs to read and write to the database, so it introduces bean dependencies into its class. I use ray python to call my Java function across languages. I find that it fails to initialize and those beans cannot be injected normally. Can ray process framework-based java tasks?