Our results predicted that astragalin and rosmarinic acid might regulate the JAK-STAT pathway by targeting PIM2 and STAT1, respectively, while paeoniflorin and rosmarinic acid were likely to regulate inflammatory responses by targeting TNFα, IL-6, and IL-4 during T2D. The gene discussed is PIM2; the disease is type 2 diabetes mellitus.