What is the meaning of [when all you have is a hammer, everything looks like a nail]

People with a restricted range of knowledge or options often try to apply the same solution to every problem.