1。将数据库的表设为UTF-8编码 2。将数据库的链接 url = "jdbc:mysql://localhost:3306/movie?useUnicode=true&characterEncoding=UTF-8"即可