China has advised its citizens to avoid travelling to Japan, following a diplomatic feud sparked by remarks from Tokyo's new premier about a hypothetical attack on Taiwan.

Japanese Prime Minister Sanae Takaichi told parliament on November 7 that use of force against the self-ruled island claimed by China could warrant a military response from Tokyo.

On Friday, Beijing said that it had summoned Japan's ambassador, while Tokyo said it had summoned China's ambassador after an "inappropriate" and now-removed online post.

Tokyo has since said its position on Taiwan, just 100 kilometres (62 miles) from the nearest Japanese island, is unchanged.

In an online post late Friday, China's embassy in Japan warned its citizens against travelling to the country.

"Recently, Japanese leaders have made

See Full Page