Skip to content

Commit c2cdc14

Browse files
committed
Polish documentation
Add an explicit note that states that "spring.datasource.url" (or more specifically "spring.datasource.class-name" that is inferred from the former) is necessary to connect to a database. If the class-name isn't specified, Spring Boot will attempt to auto-configure an embedded database. Closes gh-6907
1 parent 30cb15a commit c2cdc14

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2359,6 +2359,9 @@ DataSource configuration is controlled by external configuration properties in
23592359
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
23602360
----
23612361

2362+
NOTE: You should at least specify the url using the `spring.datasource.url` property or
2363+
Spring Boot will attempt to auto-configure an embedded database.
2364+
23622365
TIP: You often won't need to specify the `driver-class-name` since Spring boot can deduce
23632366
it for most databases from the `url`.
23642367

0 commit comments

Comments
 (0)