If you dream of cucumbers, it can mean whatever this vegetable means for you. For instance, if you like to eat cucumbers for its taste, then this dream of cucumbers is probably a reminder of how much you desire to consume them.
If you hate the taste of cucumber but dream of them, then this dream probably means you will face a situation where you’re forced to do something you hate (like eating a cucumber).