We don’t have a Java native environment, so you would need to Dockerize your app and run it with a Dockerfile on Render: https://render.com/docs/docker. Unfortunately, we don’t have any docs on how to do this specifically witha Spring boot application.
You should be able to create a separate service for your frontend, and can use our Managed Postgresql offering.