"Javi Martinez was examined by Spanish physician Dr Ramon Cugat in Barcelona on Tuesday in the presence of Dr Ernst-Otto Munch," the Bavarian club said on its official website on Tuesday, reports Efe.
The surgery was necessary because the diagnosis confirmed minor damage to the meniscus in his left knee.
The Spanish international's injury has caused a problem at Bayern, since his teammate central defender Jerome Boateng is also injured and will be sidelined for about three months.
Both injured players will miss their side's match against Italian side Juventus in the Champions League on Februaury 23.
Bayern coach Pep Guardiola had only Holger Badstuber in central defence, since Moroccan defender Mehdi Benatia is still recovering from his injury, so they had to sign Spartak Moscow's player Serdar Tasci on Monday.Published 03 Feb 2016, 17:09 IST