Why do several of my immature Male bosses try to josh at me and tease me (I am a woman)? I have no interest in it?

Why do several of my immature Male bosses try to josh at me and tease me (I am a woman)? I have no interest in it and am actually hurt and offended when they do it. How do I ignore the behavior?
Why do several of my immature Male bosses try to josh at me and tease me (I am a woman)? I have no interest in it?
Post Opinion