https://github.com/spring-projects/spring-boot/blob/4290193a659300e143fbbab0a93be0f528441c1c/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DataSourceProperties.java#L56-L59
The name
doesn't default to testdb
unless spring.datasource.generate-unique-name
is set to false
(the default there is true
).