The present invention relates to 2-substituted aminobenzothiazole compounds and pharmaceutically acceptable salts thereof, as well as pharmaceutical compositions containing the compounds, and a use thereof. The 2-substituted aminobenzothiazole compounds are compounds represented by general formula I and pharmaceutically acceptable salts thereof, the substituents R1, R2, R3, R4, m, n, X and Y having the meanings provided in the description. The present invention further relates to a use of the compounds represented by general formula I in the preparation of a medicament for treating and / or preventing sEH-mediated diseases, particularly in the preparation of a medicament for treating inflammatory diseases, cardiovascular and cerebrovascular diseases, pain, dry eye syndrome, diabetes, diabetic complications, diabetes-related diseases, fibrotic diseases, neurological and psychiatric diseases, ulcerative diseases, and the like.