Skip to content

Commit d490b99

Browse files
committed
Clarify scope of spring.datasource.platform
Closes gh-10416
1 parent cc16402 commit d490b99

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DataSourceProperties.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -102,7 +102,8 @@ public class DataSourceProperties
102102
private boolean initialize = true;
103103

104104
/**
105-
* Platform to use in the schema resource (schema-${platform}.sql).
105+
* Platform to use in the DDL or DML scripts (e.g. schema-${platform}.sql or
106+
* data-${platform}.sql).
106107
*/
107108
private String platform = "all";
108109

spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ content into your application; rather pick only the properties that you need.
637637
spring.datasource.jndi-name= # JNDI location of the datasource. Class, url, username & password are ignored when set.
638638
spring.datasource.name=testdb # Name of the datasource.
639639
spring.datasource.password= # Login password of the database.
640-
spring.datasource.platform=all # Platform to use in the schema resource (schema-${platform}.sql).
640+
spring.datasource.platform=all # Platform to use in the DDL or DML scripts (e.g. schema-${platform}.sql or data-${platform}.sql).
641641
spring.datasource.schema= # Schema (DDL) script resource references.
642642
spring.datasource.schema-username= # User of the database to execute DDL scripts (if different).
643643
spring.datasource.schema-password= # Password of the database to execute DDL scripts (if different).

0 commit comments

Comments
 (0)