Yes I've had them though the best treatment depends on the cause. Do you know what caused it, have you seen a Dr and been properly diagnosed and had a test for anything like h pylori?
Have you got any existing/suspected medical conditions which could have caused it or other symptoms, are you on any medications, including over the counter ones like ibuprofen? Some drugs can irritate your tummy and cause an ulcer. Answers to this could assist anyone more knowledgable who is about.
I've had a few diagnosed by a GP, I tend to say suspected as my gastro consultant says it can't be properly diagnosed without a camera down etc... I took my meds (omeprazole) and time differed for each.
As said above, diet is important and also check on any medications you are on in case there is any issue there, don't stop anything without medical advice first though. It will take a lot longer to get better if you are doing anything which continues to irritate it.