Question: can mobs spawn in water?
Answer: Mobs do not naturally spawn on transparent blocks, in water (except for squid, drowned, fish, dolphin, guardians, and elder guardians), in lava (except for striders), on bedrock, or on blocks less than a full block tall (such as slabs placed on the bottom half).