The annual inflation in Germany, as measured by the consumer price index, hit 2.4 percent in May, according to the country's Federal Statistical Office on Wednesday.