“Resilience” in psychology is the positive capacity of people to cope with stress and adversity. This coping may result in the individual “bouncing back” to a previous state of normal functioning, or using the experience of exposure to adversity to produce a “steeling effect” and function better than expected (much like an innoculation gives one the capacity to cope well with future exposure to disease).
Our ability to stay in a job that we don’t like (most of the time) depends on one’s ability to foster resilience under job adversity. Resilience is most commonly understood as a process, and not a trait of an individual, however the amount of resilience we can foster varies significantly from person to person. It is also affected by an individual’s awareness of external factors such as having others reliant on them financially, competitiveness in the job market, financial debts etc.
If you are interested in finding out more about improving your resilience at work you will find some earlier articles on this in this website.