Skip to content
Advertisement

Change Spring boot folder structure for source code and resources

How can I change the path where spring boot is looking for the source code and resources.

I want to move from src/main to src/server/main.

In pom I put:

JavaScript

Error:

Could not find or load main class ema.Application

Advertisement

Answer

Here is a sample build section of a POM that can be used to configure the directories.

JavaScript

Below Sample:

JavaScript
Advertisement