If he is mistreating you he is not your boy friend. A friend of any sort would not treat you badly and make you feel bad about yourself. Tell him you have had it with his attitude. Tell him to straighten up or go away.
Now, if he starts acting better then goes back to his old ways, dump his gluteus maximus with no warning.
Two things. One, ditch the SOB NOW! And, then, see a shrink to find out why you were attracted to an abusive jerk like him in the first place. Your self-esteem must be lower than a snake's belly in a wagon track. Go find out why.