Whilst I don't condone applying some of the following treatments as suggested by the site, "Vegemite applied directly" or "squeezing it then rubbing with salt" or "chewing cloves", I do think you need to work out why you are getting ulcers in the first place.
A dab of Bonjela and a salt rinse can have a pain-reducing and healing effect but there is no miracle cure for ulcers just yet (aside from chopping your head off).
Some common causes of ulcers include stress, emotional trauma, infection from viruses, injury or fatigue. The ulcers can also be caused by food allergies, for example some acidic foods like oranges and tomatoes can bring on ulcers. You can also give yourself an ulcer if you have had minor physical injury within the mouth, for example knocking the wall of the mouth with a toothbrush.
Therefore as an ulcer sufferer you should take steps to change whatever might be causing the ulcers for you.