Our previous research developed a novel tuberculosis (TB) DNA vaccine ag85a/b that showed a significant therapeutic effect on the mouse tuberculosis model by intramuscular injection (IM) and electroporation (EP). However, the action mechanisms between these two vaccine immunization methods remain unclear. In a previous study, 96 Mycobacterium tuberculosis (MTB) H37Rv‐infected BALB/c mice were treated with phosphate‐buffered saline, 10, 50, 100, and 200 μg ag85a/b DNA vaccine delivered by IM and EP three times at 2‐week intervals, respectively. In this study, peripheral blood mononuclear cells (PBMCs) from three mice in each group were isolated to extract total RNA. The gene expression profiles were analyzed using gene microarray technology to obtain differentially expressed (DE) genes. Finally, DE genes were validated by real‐time reverse transcription‐quantitive polymerase chain reaction and the GEO database. After MTB infection, most of the upregulated DE genes were related to the digestion and absorption of nutrients or neuroendocrine (such as Iapp, Scg2, Chga, Amy2a5), and most of the downregulated DE genes were related to cellular structural and functional proteins, especially the structure and function proteins of the alveolar epithelial cell (such as Sftpc, Sftpd, Pdpn). Most of the abnormally upregulated or downregulated DE genes in the TB model group were recovered in the 100 and 200 μg ag85a/b DNA IM groups and four DNA EP groups. The pancreatic secretion pathway downregulated and the Rap1 signal pathway upregulated had particularly significant changes during the immunotherapy of the ag85a/b DNA vaccine on the mouse TB model. The action targets and mechanisms of IM and EP are highly consistent. Tuberculosis infection causes rapid catabolism and slow anabolism in mice. For the first time, we found that the effective dose of the ag85a/b DNA vaccine immunized whether by IM or EP could significantly up‐regulate immune‐related pathways and recover the metabolic disorder and the injury caused by MTB.