原因是application.yml中數據庫沒有配置&characterEncoding=utf-8
# 數據庫連接池參數 spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/guli_edu?serverTimezone=GMT%2B8&characterEncoding=utf-8 username: root password: root application: # 注冊中心中當前服務的key+獲取配置中心中配置文件的默認名稱 name: service-edu jackson: # json日期時區設置 time-zone: GMT+8 date-format: yyyy-MM-dd HH:mm:ss # 服務名+端口號 server: port: 8110 # mybatisplus的日志配置 mybatis-plus: configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl