背景:

部署项目到服务器,springboot启动报错:
No bean named ‘org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry’ available


解决:

mysql8.0版本的使用的数据库连接字符串不一样,而且对时区有要求,引用下面的连接即可

url: jdbc:mysql://localhost:3306/vmm?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true