You should have a look at Spring Boot, which makes the Spring backend much easier to bootstrap/customize.
https://start.spring.io is your fastest way to production using Java/Spring
https://start.spring.io is your fastest way to production using Java/Spring