I have a problem with an application built in java and spring boot.
1/ How can to generate eclipse project from only src folder? Is it possible to somehow automatically generate dependencies (pom.xml etc.)? I don't have a pom.xml file, just a src folder? Is there any way to automatically generate project from src folder in e.g. eclipse and generate dependencies automatically?
2/ Second question: I would like to move a java application from one server to new another server. I don't have project files. I have the structure as below in Tomcat webapps:
Is it possible to generate a project from this strukture in eclipse or intelliJ? I am asking for help and some step-by-step instructions. I'm just learning java

Maven is Separate from Java, Maven is used to inject dependencies into your application so that you may import them freely in your project.
If you are using Spring, you may use the initializer to add dependencies and create a pom.xml , that in the end you may import to eclipse in order to get your project started.
Spring Initializr