During the Spring and Autumn period, Shanghai belonged to the Kingdom of Wu, which was conquered by the Kingdom of Yue, which in turn was conquered by the Kingdom of Chu.
Shanghai belonged to the Kingdom of Wu. This was period. This was during the Spring and Autumn. The Kingdom of Wu was conquered by the Kingdom of Yue. The Kingdom of Yue in turn was conquered by the Kingdom of Chu.