What Might Explain Those Eclipse Spring Boot App Exceptions

I’m still settling back in with Eclipse after a long time in IntelliJ IDEA. I’ve been happily building and running Spring Boot in Gradle, but when I went to use the Eclipse Spring Boot App IDE, part of the excellent Spring Tool Suite, I was spitting out NoSuchBeanDefinition Exceptions.

Here’s the Spring Boot App Configuration Dialog.

Like I said in this post’s Subject line, this MIGHT be your problem. If it is you’re in luck and here’s a hint: Profiles.

You can see the Profile entry in the dialog screenshot above, but it seems when I ran the app it was ignored. It could have been something I screwed up elsewhere, but here was the fix, adding the Spring Active Profile as an environment variable in the Run Configuration’s “Environment” tab.