How to get over someone ?

Was in a situationship for almost a year and can’t seem to get this person on my mind no matter what. I have important things to worry about and everything constantly reminds me of him. I want to focus on myself because even my dating life is out of wack. Before he came I could vibe with anyone now it’s seems like no is good enough.