The present invention relates to a 2,4-disubstituted 7H-pyrrolo[2,3-d]pyrimidine derivative, a preparation method and a medicinal use thereof. In particular, the present invention discloses a compound of formula (I) or a pharmaceutically acceptable salt, stereoisomer, solvate or prodrug thereof, and a preparation method and use thereof. For the definition of each group in formula (I), see the description for details.