Diabetes has a certain genetic predisposition, and genetic factors are one of the important risk factors for the occurrence of diabetes, but its onset generally requires the simultaneous action of environmental factors on top of genetic factors. So to prevent the occurrence of hereditary diabetes, you need to do the following: first, avoid obesity, because obesity is an important factor leading to the occurrence of diabetes. Second, pay attention to diet, diet must be reasonable, avoid excessive intake of sugar and carbohydrates, eat more green vegetables. Third, pay attention to the regulation of emotions, to avoid long-term mental tension, or long-term stress, resulting in the body to raise blood sugar factors increasing, in this case the incidence of diabetes also increased. Fourth, to develop good habits, to work and rest on time, do not stay up late, do not smoke, drink alcohol, do not overeat. Fifth, to properly increase exercise, must increase exercise, can avoid the occurrence and development of diabetes.