To explore the correlation between different personality characteristics and self-management attitude such as medication, exercise and diet in patients with type 2 diabetes mellitus. The patients with type 2 diabetes mellitus from 4 Community Healthcare Services and 22 affiliated community stations of Tongzhou District and Shunyi District of Beijing were selected as subjects. The Chinese big five personality inventory and the self-designed scale including the attitudes of medication, exercise and diet were used in the study. In this study, 642 subjects were finally included, among whom the sex ratio of male and female was basically the same, 61.21% were over 61 years old. In this study, different genders had differences in neurotic personality (P<0.05), different age groups had differences in agreeableness and openness (P<0.05), different education levels had differences in openness and extraversion (P<0.05), and different income levels had differences in agreeableness, openness and extraversion (P<0.05). The linear correlation analysis of the five-factor moldel of personality traits with medication, exercise and diet attitude showed that three items of perceived disorders of medication were positively correlated with neuroticism (r=0.125, 0.187, 0.151, P<0.05), four items of perceived disorders of exercise were positively correlated with neurotic personality (r=0.163, 0.129, 0.119, 0.104, P<0.05), and perceived benefits of exercise were positively correlated with conscientiousness (five items, r=0.156, 0.111, 0.131, 0.104, 0.131, P<0.05), agreeableness (two items, r=0.092, 0.078, P<0.05) and extraversion (four items, r=0.079, 0.122, 0.115, 0.123, P<0.05), three items of perceived disorders of diet were positively correlated with neuroticism (r=0.115, 0.137, 0.108, P<0.05), and two items of were negatively correlated with conscientiousness (r=-0.126, -0.161, P<0.05) and agreeableness (r=-0.103, -0.115, P<0.05). In the canonical correlation analysis, according to the formula combination of three groups of typical variables and canonical structure diagrams, neuroticism and agreeableness played major roles in personality traits, and items that represented "obstacles" in medication, exercise, and dietary attitudes played a major role. All the five personality traits were correlated with the self-management attitude of type 2 diabetes patients, and different personality traits have an impact on the self-management of patients with type 2 diabetes mellitus. In particular, it is of great significance to understand neuroticism for improving the mental health and quality of life of patients with type 2 diabetes mellitus. Therefore, attention should be paid to the influence of psychological factors in community management of type 2 diabetes and disease self-management, and the personalized care and health education should be carried out according to the personality traits of patients.