The design of a LiFePO4/carbon nanocomposite with a core-shell structure and its synthesis by an in situ polymerization restriction method.