“We urge Japan to face up to and deeply reflect on the history of militarism,” a Chinese Foreign Ministry spokeswoman, Hua Chunying, said at a news briefing on Sunday. A South Korean Foreign Ministry spokesman said the offering and the cabinet ministers’ visits were “tantamount to glorifying Japan’s forcible colonization and war of aggression.”

In spite of the criticism, and the additional visits to the shrine by lawmakers on Monday, all signs were that the summit meeting in Seoul, the product of months of painstaking diplomatic negotiations, would proceed as planned.

Yasukuni is disliked by many Japanese liberals as well as the country’s former colonies and wartime foes. It honors World War II leaders who were hanged by the Allies as war criminals, along with millions of ordinary soldiers and sailors. Its history museum, run by a conservative private foundation, trumpets a revisionist view of history in which Japan was bullied into war by the United States and fought to liberate Asia from Western colonialism.

The shrine attracts conservative politicians, as well as thousands of ordinary Japanese, to several festivals and war-related anniversaries each year. Mr. Abe has stayed away since a visit in December 2013 drew angry responses from Beijing and Seoul, as well as an unusual expression of displeasure from Washington. The Obama administration has been eager to see Japan mend fences with South Korea, in particular, because both countries are crucial American allies in Asia.