The invention relates to a 5-aminoisoxazole derivative and an application thereof in preparation of a multi-kinase inhibitor. The invention provides a 5-aminoisoxazole derivative shown in a formula I, and an isotope form, a stereoisomeric form, a tautomeric form, a pharmaceutically acceptable salt, a pharmaceutically acceptable solvate, a hydrate, a prodrug and a polymorphic form thereof. The invention relates to a preparation method of the compound in the formula I, wherein A, B, R1, R2, W1, W2, W3, W4, W5, W6, W7, W8 and Y are as described in the description. The compound and the pharmaceutical composition thereof are multi-kinase inhibitors and can be used for treating cancer and immune related diseases.