Spotting and hurting after having sex? 😩

When me and my BF have sex I'll spot after having sex. What does this mean? Why does it hurt still after being together after a year plus the spotting?