The results showed that adeno-associated virus-mediated IL-7 allowed the TB subunit vaccine to induce the formation of long-lived memory T cells. This evidence concerns the gene IL7 and tuberculosis.