How to get over a guy who made you feel less than and rejected you?

I get that he didn’t want to be with me like wanted to be with him but I don’t understand why he would intentionally try to make me feel less than. What was it about me that deserved that

How do I get over him and how do I feel good about myself again even when I still feel feelings towards him when I shouldn’t
How to get over a guy who made you feel less than and rejected you?
Post Opinion