<p>I was trying to deploy my application in one environment. The pod is going in crash back loop with the below error:</p>
<blockquote>
<p>&quot;mdc&quot;:{},&quot;timestamp&quot;:&quot;2021-06-01
09:38:03.582&quot;,&quot;level&quot;:&quot;ERROR&quot;,&quot;logger&quot;:&quot;org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter&quot;,&quot;message&quot;:&quot;\n\n***************************\nAPPLICATION
FAILED TO START\n***************************\n\nDescription:\n\nField
bac in
com.anjana.ms.anjana.ouseph.resources.services.implementation.anjanaValidator
required a bean of type 'anjana.wrapper.IBAC' that could not be
found.\n\nThe injection point has the following annotations:\n\t-
@javax.inject.Inject()\n\n\nAction:\n\nConsider defining a bean of
type 'anjana.wrapper.IBAC' in your configuration.\n&quot;,&quot;exception&quot;:&quot;&quot;}</p>
</blockquote>
<p>The application is getting successfully deployed in another environment, Why does it show two different behaviors in different environments, Jenkins build and Junits are running successfully.</p>

Anjana Ouseph
<p>Your spring-boot application cannot start successfully that's why kubernetes tries to restart and make it work but fails again..</p>
<p>A <code>CrashloopBackOff</code> means that you have a pod starting, crashing, starting again, and then crashing again.</p>
<p>You have a misconfiguration in your application, checkout similar problems like this <a href="https://stackoverflow.com/questions/42907553/field-required-a-bean-of-type-that-could-not-be-found-error-spring-restful-ap">&#39;Field required a bean of type that could not be found.&#39; error spring restful API using mongodb</a></p>
