I’m having a problem that I can’t control..

My boyfriend and I have been together for a year. Last year we graduated from HS and currently we are having a long distant relationship in college. I am in a degree program where there are predominantly men and I casually talk to them about work and everyday things. This one guy in my class is more of a friend because we’ve been in the same classes helping each other for months and he’s the only person I really talk to in the class ( I don’t make a lot of friends). My boyfriend gets mad whenever we get lunch together or just have a conversation walking home. I can’t just tell him to leave me alone or my boyfriend doesn’t like when I talk to you. When I get home I tell my boyfriend everything but he just gets pissed...I understand what he sees but if only he could be there to fully understand.. what do I do?