As others mentioned, find take down instructions for your firearm. If a spring shot out I’m thinking you might have a 1911? If so they can be tricky the first time or two, but the good news is they’re almost all exactly the same so there’s plenty of detailed videos on the subject. When you remove the barrel bushing your spring can launch its end cap if you’re not careful. Eye protection is recommended.
The various polymer semi autos are all typically pretty simple and typically won’t launch any parts on you.
Always always always make sure you are unloaded and chamber is empty. This cannot be stressed enough. I can take down a P250/ 320 and all glocks in about 3 seconds flat but I’ve done it hundreds of times.