How to Gain physical endurance and pain tolerance?

I want to be that type of guy who gets hit so much but is still in action, I'm an amateur boxer and I started over 5 months ago