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
f8cffd74
Commit
f8cffd74
authored
Oct 16, 2015
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.2.x'
parents
874cd339
35a3f4a1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
pom.xml
spring-boot-dependencies/pom.xml
+1
-1
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+6
-4
SpringApplicationContextLoader.java
...ngframework/boot/test/SpringApplicationContextLoader.java
+0
-1
No files found.
spring-boot-dependencies/pom.xml
View file @
f8cffd74
...
...
@@ -71,7 +71,7 @@
<gemfire.version>
8.1.0
</gemfire.version>
<glassfish-el.version>
3.0.0
</glassfish-el.version>
<gradle.version>
1.12
</gradle.version>
<groovy.version>
2.4.
5
</groovy.version>
<groovy.version>
2.4.
4
</groovy.version>
<gson.version>
2.3.1
</gson.version>
<h2.version>
1.4.190
</h2.version>
<hamcrest.version>
1.3
</hamcrest.version>
...
...
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
f8cffd74
...
...
@@ -2123,10 +2123,12 @@ For example, typical POM dependencies would be:
</dependency>
----
TIP: If you're using H2 and, for whatever reason, you do configure its connection URL,
care should be taken to disable the database's automatic shutdown using
`DB_CLOSE_ON_EXIT=FALSE`. This allows Spring Boot to control when the database is closed,
thereby ensuring that it happens once access to the database is no longer needed.
TIP: If, for whatever reason, you do configure the connection URL for an embedded
database, care should be taken to ensure that the database’s automatic shutdown is
disabled. If you're using H2 you should use `DB_CLOSE_ON_EXIT=FALSE` to do so. If you're
using HSQLDB, you should ensure that `shutdown=true` is not used. Disabling the database's
automatic shutdown allows Spring Boot to control when the database is closed, thereby
ensuring that it happens once access to the database is no longer needed.
NOTE: You need a dependency on `spring-jdbc` for an embedded database to be
auto-configured. In this example it's pulled in transitively via
...
...
spring-boot/src/main/java/org/springframework/boot/test/SpringApplicationContextLoader.java
View file @
f8cffd74
...
...
@@ -82,7 +82,6 @@ public class SpringApplicationContextLoader extends AbstractContextLoader {
throws
Exception
{
assertValidAnnotations
(
config
.
getTestClass
());
SpringApplication
application
=
getSpringApplication
();
application
.
setRegisterShutdownHook
(
false
);
application
.
setMainApplicationClass
(
config
.
getTestClass
());
application
.
setSources
(
getSources
(
config
));
ConfigurableEnvironment
environment
=
new
StandardEnvironment
();
...
...
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