Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set

Spring Boot 2.5.5 と MySQL 8.0 で spring-boot-starter-data-jpa を使用してアプリケーションを起動しようとすると下記のエラーになりました。

org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set

application.yml に dialect を追記します。

spring:
  datasource:
    url: jdbc:mysql://x.x.x.x:3306/x
    username: x
    password: x
  jpa:
    properties:
      hibernate:
        dialect: org.hibernate.dialect.MySQL8Dialect