Chinese President Xi Jinping told the military it needs to be more prepared for armed confrontation.