Spring Boot is basically an extension of the Spring framework which eliminated the boilerplate configurations required for setting up a Spring application.
Apache Spark is an open-source distributed general-purpose cluster-computing framework.
Mixing Spring & Spark - Steps
Create a Maven-Based Spring Boot Project
Add the required dependencies in pom.xml
Configure Spark Properties in application.properties
Adding the Spark ApplicationConfig: declaring the JavaSparkContext and SparkConf as beans (using @Bean annotation) this tell the spring container to manage them for us
Creating a service/controller for Read Csv & Register a REST Controller with an endpoint