The present invention relates to an amino six-membered cyclic derivatives and its application in medicine, in particular to an amino 6-membered cyclic derivative represented by the general formula (I) or a stereoisomer thereof, pharmaceutically acceptable salts, prodrugs, pharmaceutical compositions containing said derivative, and pharmaceutical use in the preparation of dipeptidyl peptidase IV (DPP-IV) inhibitors, wherein the definitions of the substituents in the general formula (I) are the same as those defined in the specification.本發明涉及一種氨基六員環類衍生物及其在醫藥上的應用,具體而言涉及通式(I)所示的氨基六員環類衍生物或其立體異構物、藥學上可接受的鹽、前藥、含有該衍生物的醫藥組合物以及在製備二肽基肽酶IV(DPP-IV)抑制劑的醫藥上的用途,其中通式(I)中各取代基的定義與說明書的定義相同。