Famous from Cao Cao's 《短歌行》: 何以解忧,唯有杜康 - 'What dispels my sorrow? Only Du Kang.' 杜康 was the legendary inventor of wine, so the line uses his name as a metonym for liquor.
culture
Title of Keigo Higashino's 2012 novel 《解忧杂货店》 (English: 'The Miracles of the Namiya General Store'), a bestseller in China - also a 2017 Sino-Japanese film adaptation. The phrase has been pulled into modern self-help branding.