Premier Li Keqiang's comment at a news conference was the communist government's highest-level rejection of accusations Chinese companies might spy on foreign customers.
Asked whether Beijing told Chinese companies to spy, Li said, "Let me tell you explicitly that this is not consistent with Chinese law. This is not how China behaves. We did not do that and will not do that in the future."
The United States and some other governments have imposed curbs on use of technology from Chinese vendors including Huawei Technologies Ltd. as possible security risks.
Huawei, the biggest global maker of network gear for phone and internet companies, has denied accusations it facilitates Chinese spying.
Huawei's founder told reporters this year he would reject government requests to disclose confidential information about foreign customers.
Copyright 2019 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.