出错原因:数据库和系统时区差异所造成的,在高版本的数据库会遇见此类问题 解决办法: 在url后加上serverTimezone=UTC jdbc:mysql://localhost:3306/shiro?serverTimezone=UTC