Hi M.,
Biting while nursing is very painful, I know. I'm sorry it has brought back some painful memories for you and it's good that your not feeling angry at him, but want to deal with it appropriately.
If he bites when he's fully awake, taking him off the breast for a minute when he does it is good (to help you recover from the bite and to send a brief physical message to your baby that something has gone wrong), however, I wouldn't stop nursing completely as most babies don't do it more than once during a single nursing session and there are ways to avoid it (as I will describe below). Also, to get him to unlatch, you may be tempted to pull him away from you which will make the biting hurt more. Instead, draw him in toward your breast so that his nose is very briefly pressed against you, which will cause him to need to take a breath through his mouth and then release the clench on your nipple.
Secondly, babies often bite down after they've finished nursing and/or while they're asleep at the breast. While I enjoy nursing because it is such a great comfort/sleep tool, if my child is going through a little biting phase, I have to be careful to take them off as soon as I can tell that they are done and not let them suckle for really long periods of time because that is typically when a bite will occur (when they're falling asleep or when they've finished nursing for milk and are just nursing for comfort). I would be proactive about this for a week or two, and then he'll probably be through this phase and not bite as often (or at all). During this time, I would also get a teether that he really likes and try giving it to him cold (but not frozen) to chew on. If he has something to chew on in between nursing sessions, he may not chew on you as much. *Avoiding* biting this way has been more effective for me than trying to teach my infants not to do it. They each have had brief phases of it, and it has always just naturally gone away without any training, really (and I've successfully breastfed 4 children, 3 of them well beyond a year of age; my last two I have nursed until just before they turned 2 yo). Weaning is not necessary and I would definitely not physically punish him or be punitive about handling it; try not to yell at him if you can. It's just a reflex due to teething and they don't have much idea of what they've done. An older toddler has slightly more reasoning ability, so talking to them about it can be more effective than trying to talk to a baby under 18 months of age. Since your 7 month old is not able to reason yet verbally, trying to talk to him about it isn't going to solve the issue. Just knowing that it's a common developmental reaction to teething and then being proactive about finding the right time to take him off the breast before a bite occurs helps a lot.
Also, if you're not in a group already, I highly recommend getting signed up for a La Leche League (breastfeeding support) Group in your area. They have groups all over the world and give so much wonderful information about everything related to nursing and handling/troubleshooting different breastfeeding issues. It's really a great solution for new moms who are experiencing these things for the first time and need informed guidance. I wish I would have joined one with my first baby! It would have saved me a lot of trouble and given me the support I needed at the time.
Enjoy that precious baby of yours and I hope the biting resolves soon!
Blessings,
J.