Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
8656402c
Commit
8656402c
authored
Aug 26, 2014
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish database docs section
parent
c98713ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+1
-1
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+4
-1
No files found.
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
8656402c
...
@@ -171,7 +171,7 @@ content into your application; rather pick only the properties that you need.
...
@@ -171,7 +171,7 @@ content into your application; rather pick only the properties that you need.
spring.datasource.platform= # the platform to use in the schema resource (schema-${platform}.sql)
spring.datasource.platform= # the platform to use in the schema resource (schema-${platform}.sql)
spring.datasource.continueOnError=false # continue even if can't be initialized
spring.datasource.continueOnError=false # continue even if can't be initialized
spring.datasource.separator=; # statement separator in SQL initialization scripts
spring.datasource.separator=; # statement separator in SQL initialization scripts
spring.datasource.driver
ClassN
ame= # JDBC Settings...
spring.datasource.driver
-class-n
ame= # JDBC Settings...
spring.datasource.url=
spring.datasource.url=
spring.datasource.username=
spring.datasource.username=
spring.datasource.password=
spring.datasource.password=
...
...
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
8656402c
...
@@ -1258,12 +1258,15 @@ in `application.properties`:
...
@@ -1258,12 +1258,15 @@ in `application.properties`:
spring.datasource.url=jdbc:mysql://localhost/test
spring.datasource.url=jdbc:mysql://localhost/test
spring.datasource.username=dbuser
spring.datasource.username=dbuser
spring.datasource.password=dbpass
spring.datasource.password=dbpass
spring.datasource.driver
ClassN
ame=com.mysql.jdbc.Driver
spring.datasource.driver
-class-n
ame=com.mysql.jdbc.Driver
----
----
See {sc-spring-boot-autoconfigure}/jdbc/DataSourceProperties.{sc-ext}[`DataSourceProperties`]
See {sc-spring-boot-autoconfigure}/jdbc/DataSourceProperties.{sc-ext}[`DataSourceProperties`]
for more of the supported options.
for more of the supported options.
TIP: You often won't need to specify the `driver-class-name` since Spring boot can deduce
it for most databases from the `url`.
NOTE: For a pooling `DataSource` to be created we need to be able to verify that a valid
NOTE: For a pooling `DataSource` to be created we need to be able to verify that a valid
`Driver` class is available, so we check for that before doing anything. I.e. if you set
`Driver` class is available, so we check for that before doing anything. I.e. if you set
`spring.datasource.driverClassName=com.mysql.jdbc.Driver` then that class has to be
`spring.datasource.driverClassName=com.mysql.jdbc.Driver` then that class has to be
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment