I’m confused with his feelings

I’ve been dating my bf for two years now. I love him . We always have a good time together. I finally told him that he’s not affectionate at all. Even though he does other things that shown me he cares. He only told me once that he loves me . Not so long ago he’s like I am not going anywhere. Sometimes I feel like walking away . But I love him . Don’t know what to do 😔😱