I have a spring-boot application that needs to:
I\
I had the same problem using IntelliJ 2018. Initially, Make sure that you have added the maven library for the spring project in your IntelliJ.
My solution is:
Go to Run
-> Edit Configurations
.
Select Application
&& choose your current project.
Check Include dependencies with "Provided" scope
.
OK
-> RUN