BEIJING — The Chinese foreign minister took a strong stand Saturday on China’s growing territorial disputes with neighboring nations, saying that “there is no room for compromise” with Japan and that China would “never accept unreasonable demands from smaller countries,” an apparent reference to Southeast Asian nations.

The foreign minister, Wang Yi, a former ambassador to Japan, made his comments at a news conference on the fourth day of the National People’s Congress, an annual meeting of China’s rubber-stamp legislature. Mr. Wang took questions from foreign and Chinese news organizations on the same morning he learned that a Malaysia Airlines flight bound for Beijing had disappeared, and he spoke on a range of subjects that included Ukraine, the Korean Peninsula and relations between China and the United States. Mr. Wang stressed several times that China was committed to regional peace.

But Mr. Wang did not mince words on the subject of Japan and its prime minister, Shinzo Abe, who has angered Chinese leaders with recent public remarks on China-Japan relations and with a visit in December to the Yasukuni Shrine in Tokyo, where Japanese war dead are honored, including 14 Class A war criminals. In the East China Sea, China refuses to accept Japan’s administration of, or its claims to, islands that Japan calls the Senkaku and China calls the Diaoyu.

“On the two issues of principle — history and territory — there is no room for compromise,” Mr. Wang said in answer to a question from a Japanese reporter on the deterioration of China-Japan relations. “If some people in Japan insist on overturning the verdict on its past aggression, I don’t think the international community and all peace-loving people in the world will ever tolerate or condone that.”