Though I sometimes would like to believe otherwise, food is a dog's first priority, no matter how much he likes you, so the first step to successful training is to establish yourself as the leader. One of the options to do it is by showing him that he can only have his food at your command and discretion. Give him his meal, allow him to eat for a few moments, then take his bowl away from him. Use an appropriate sound each time you do so, such as "leave" or "stop", and keep the bowl for a few seconds before you hand it back to him. Provided he didn't show any aggression as you removed the bowl, tell him how 'good boy', give it back and allow him to continue eating. Repeat this three or four times during each meal for a few days, then once or twice a week for a few weeks. Practice until perfection.
Some dogs are never possessive with their food, but you may find if your dog came from a large litter, the only way he could get his share of the meal was to threaten his brothers and sisters. Finding this action achieved the desired result (getting more food), he may well try it with you. If you don't sort this out very early on, this possessiveness will transfer to other things, such as bones, furniture, toys and so on, perhaps even to some members of the family. This can not be allowed.
To stop him being aggressive with his food, don't give him possession of it! By this I mean feed him by hand for a couple of weeks. Be persistent. Prepare his food in the bowl as usual, but don't put the bowl on the floor for him. Simply feed him a handful at a time. The bowl of food on the floor almost instinctively makes him want to guard it, so if he is not put in this position of needing to guard, he will not bite you!
Feeding by hand also helps if your dog is dominant in other areas. It makes him completely reliant on you for the most important thing in his life, his food. This will reinforce your position of pack leader, as he is only receiving the food from you and not from the bowl. You can also use this period of hand feeding to your benefit by making him perform some minor order from you for some of the food. Get him to sit first before one handful, or to lie down for the next, and so on. Don't make him run around for the food as this could cause digestive upsets.
You will find that after a couple of weeks of this regime, his general attitude over possessions will change. You can then try giving him his food in a bowl again, and, provided there is no sign of aggression, continue to feed him normally.
Note for food possessive dogs - do not give them toys or bones, as they will attempt to guard these in the same way. Once the food possession has been sorted out, you can try introducing a toy, but make sure the dog understands that it is your toy, and he is only allowed to play with it with you, and when you decide the game is to end, you must end up with the toy.