错在 原来的链接url是
jdbc:mysql://172.24.131.7:33306/knowledge_base?serverTimezone=UTC 应该改为
spring.datasource.url=jdbc:mysql://10.35.105.25:3306/database?characterEncoding=utf-8&serverTimezone=GMT%2B8
数据库配置后面加上 &serverTimezone=GMT%2B8