The tremendous development of peptide-based cancer vaccine has attracted incremental interest as a powerful approach in cancer management, prevention and treatment. As successful as tumor vaccine has been, major challenges associated with achieving efficient immune response against cancer are (1) drainage to and retention in lymph nodes; (2) uptake by dendritic cells (DCs); (3) activation of DCs. In order to overcome these barriers, here we construct PBE-modified TRP2 nanovaccine, which comprises TRP2 peptide tumor antigen and diblock copolymer PEG-b-PAsp grafted with phenylboronic ester (PBE). We confirmed that this TRP2 nanovaccine can be effectively trapped into lymph node, uptake by dendritic cells and induce DC maturation, relying on increased negative charge, ROS response and pH response. Consistently, this vehicle loaded with TRP2 peptide could boost the strongest T cell immune response against melanoma in vivo and potentiate antitumor efficacy both in tumor prevention and tumor treatment without any exogenous adjuvant. Furthermore, the TRP2 nanovaccine can suppress the tumor growth and prolong animal survival time, which may result from its synergistic effect of inhibiting tumor immunosuppression and increasing cytotoxic lymphocyte (CTL) response. Hence this type of PBE-modified nanovaccine would be widely used as a simple, safe and robust platform to deliver other antigen in cancer immunotherapy.