Beijing has spent heavily on high-tech weapons in recent years to back up threats against Taiwan .