The invention discloses an all-solid-state composite polymer electrolyte and a preparation method thereof. An adopted polymer matrix is a hyperbranched polymer or a star-like polymer. Different types of lithium salt are added into the polymers, and are compounded with substances such as inorganic fillers (such as nanoparticles, nanofibers), ionic liquid, carbonic ester compounds as well as other linear or branched polymers (such as polyether, polydioxolane, polycaprolactone, polyphosphazene, polyurethane, Makrolon, polyamide, polyimide, polyester, polyvinylidene fluoride, polytetrafluoroethylene, polyhexafluoropropylene or corresponding segmented copolymers or graft polymers thereof and the like) respectively, a film can be formed through a solution pouring process, the all-solid-state composite polymer electrolyte is prepared, and the room-temperature conductivity of the electrolyte is approximate to 10<-4> S/cm. The solid electrolyte has potential applications in electrochemical devices such as secondary lithium ion batteries, supercapacitors, electronic sensors, electrochromic devices and the like.