The application of lithium-based batteries is challenged by the safety issues of leakage and flammability of liquid electrolytes. Polymer electrolytes (PEs) can address issues to promote the practical use of lithium metal batteries.However, the traditional preparation of PEs such as the solution-casting method requires a complicated preparation process, especially resulting in side solvents evaporation issues. The large thickness of traditional PEs reduces the energy density of the battery and increases the transport bottlenecks of lithium-ion. Meanwhile, it is difficult to fill the voids of electrodes to achieve good contact between electrolyte and electrode. In situ polymerization appears as a facile method to prepare PEs possessing excellent interfacial compatibility with electrodes. Thus, thin and uniform electrolytes can be obtained. The interfacial impedance can be reduced, and the lithium-ion transport throughput at the interface can be increased. The typical in situ polymerization process is to implant a precursor solution containing monomers into the cell and then in situ solidify the precursor under specific initiating conditions, and has been widely applied for the preparation of PEs and battery assembly. In this review, we focus on the preparation and application of in situ polymerization method in gel polymer electrolytes, solid polymer electrolytes, and composite polymer electrolytes, in which different kinds of monomers and reactions for in situ polymerization are discussed. In addition, the various compositions and structures of inorganic fillers, and their effects on the electrochemical properties are summarized. Finally, challenges and perspectives for the practical application of in situ polymerization methods in solidstate lithium-based batteries are reviewed.