1.数据库url=jdbc:mysql:///day17?characterEncoding=utf-82.依次点击File -> Settings -> Editor -> File Encodings 3.修改maven -Dfile.encoding=gbk4.pom.xml