AITA for Wanting My Boyfriend to Leave after His Surprise Visit?

Original story

Update: I would like to clarify I only wanted a quick second opinion at 3 AM. This is the reason I hadn’t included more info, which definitely led to most commenters jumping to conclusions.

I am male and actually somewhat the “dominant” one in our relationship – he was very understanding when I told him he had to leave, and we spent an amazing afternoon together, which took my mind off uni stress. He is, in my opinion, a keeper, and I find it downright disgusting that most commenters immediately assumed ill intent and tried to convince me to dump him, especially given the limited amount of information.

I truly believe that, in this case, the vast majority of commenters are the assholes.

My boyfriend and I both live in different EU countries (it is currently 3 AM – I am typing this as he sleeps), however, he just visited yesterday at around 8:30 pm without telling me he would do so beforehand. He has asked me whether I would be fine with him doing surprise visits, and while I generally am not against them, I made it clear to him multiple times already that he should not do them until july.

Just for context; he visited me in my dorm room. I am a medical student and have an important upcoming exam I need to study for.

I really do enjoy his company and he even brought me an expensive gift, but I cannot help but feel not listened to in the sense that i clearly did tell him i needed space and time to study for my exam over the next 2 weeks. AITA for wanting him to leave tomorrow morning without having spent much time together at all?