1. 选择Run configurations…: 2. 右键Maven Build->New Configurations: 3.配置运行项目的环境: 4.加入需要运行的项目: 5.选择编码方式为UTF-8: