Eat raw onion in salad with food, take buttermilk, curd, lassi, juice and fruits containing vitamin C etc. Keep away from spicy food and outside food. All these remedies are for common ulcers, but if there are repeated ulcers in the mouth or the condition is getting worse every day without healing, then consult a doctor immediately.