The invention relates to an aminopyrimidine compound as shown in a formula (I), a pharmaceutical composition containing the compound, and application of the compound as shown in the formula (I) to prevention and / or treatment of cancers, tumors, inflammatory diseases, autoimmune diseases or immune-mediated diseases. # imgabs0 #