How do you forgive those who have hurt you?

When you’ve been hurt, how do you handle that from a Christian perspective and forgive those who have hurt you?