Sounds like he's a prick, and you've allowed him to shit all over you for awhile now.
Have a talk with him, explain you are tired of being treated like shit over the silliest stuff. If it doesn't change, get out. It isn't gonna get better until you confront him about it.