The first time was the Sino-Japanese War (1894- 1895), which was a war between the Qing government and the imperial Japanese government. China used to call it the Sino-Japanese War, while Japan called it the Sino-Japanese War. The first Sino-Japanese War began with the Battle of Toyoshima and ended with the signing of treaty of shimonoseki.
The Second Sino-Japanese War (1937- 1945) was a war between the Government of the Republic of China and the Government of Imperial Japan, and it was a part of the Second World War. China used to call it "War of Resistance against Japanese Aggression" and Japan called it "Sino-Japanese War". The Second Sino-Japanese War began with the Lugouqiao Incident, and finally Japan accepted the Potsdam Proclamation and announced its unconditional surrender.
As for similarities and differences: nothing more than losing for the first time and narrowly winning for the second time. If the Soviet army had not entered the northeast to destroy the Kwantung Army, the United States would have dropped two atomic bombs. According to the Japanese strategy at that time, it was based on the three northeastern provinces and fought a protracted war with China. Therefore, Japan has refused to accept it. They only admit that they were defeated by the United States and despise China. China never bullied him when he was strong (in the prosperous Tang Dynasty), but when China declined (in the late Qing Dynasty), he jumped at him like a wolf.
So my conclusion is that the Japanese wolf's ambition must not be weak, and our sincerity for peace must not be trampled on at will. We must dare to wage a reasonable and legal war.
I suggest you read two books-Dai Xu: C-Perimeter and Prosperity, which will be helpful to your global vision.