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
b3229707
Commit
b3229707
authored
Dec 24, 2013
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-org README a bit
parent
aee42fcc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
README.md
README.md
+8
-5
ConfigFileApplicationContextInitializerTests.java
...ializer/ConfigFileApplicationContextInitializerTests.java
+2
-0
No files found.
README.md
View file @
b3229707
...
@@ -17,6 +17,10 @@ diverge from the defaults
...
@@ -17,6 +17,10 @@ diverge from the defaults
(e.g. embedded servers, security, metrics, health checks, externalized configuration)
(e.g. embedded servers, security, metrics, health checks, externalized configuration)
*
Absolutely no code generation and no requirement for XML configuration
*
Absolutely no code generation and no requirement for XML configuration
A good place for further reading is the
[
compendium of micro HOWTO guides
](
docs/howto.md
)
covering many common
use cases.
## Spring Boot CLI
## Spring Boot CLI
The Spring Boot CLI is a command line tool that can be used if you want to quickly
The Spring Boot CLI is a command line tool that can be used if you want to quickly
prototype with Spring. It allows you to run
[
Groovy
](
http://groovy.codehaus.org/
)
scripts,
prototype with Spring. It allows you to run
[
Groovy
](
http://groovy.codehaus.org/
)
scripts,
...
@@ -271,11 +275,7 @@ before your first change however trivial. (Or if you filed such an
...
@@ -271,11 +275,7 @@ before your first change however trivial. (Or if you filed such an
agreement already for another project just mention that in your pull
agreement already for another project just mention that in your pull
request.)_
request.)_
## Further Reading
## Modules
A good place to start might be the
[
compendium of micro HOWTO guides
](
docs/howto.md
)
covering many common
use cases.
There are a number of modules in Spring Boot, if you want learn more about each one
There are a number of modules in Spring Boot, if you want learn more about each one
please refer to the appropriate README.md file:
please refer to the appropriate README.md file:
...
@@ -386,11 +386,14 @@ generally recommend using Java `@Configuration` whenever possible)
...
@@ -386,11 +386,14 @@ generally recommend using Java `@Configuration` whenever possible)
## Guides
## Guides
The
[
spring.io
](
http://spring.io/
)
site contains several guides that show how to use Spring Boot step-by-step:
The
[
spring.io
](
http://spring.io/
)
site contains several guides that show how to use Spring Boot step-by-step:
*
[
Building an Application with Spring
*
[
Building an Application with Spring
Boot](http://spring.io/guides/gs/spring-boot/) is a very basic guide
Boot](http://spring.io/guides/gs/spring-boot/) is a very basic guide
that shows you how to create a simple application, run it and add some
that shows you how to create a simple application, run it and add some
management services.
management services.
*
[
Building a RESTful Web Service with Spring Boot Actuator
](
http://spring.io/guides/gs/actuator-service/
)
*
[
Building a RESTful Web Service with Spring Boot Actuator
](
http://spring.io/guides/gs/actuator-service/
)
is a guide to creating a REST web service and also shows how the server can be configured.
is a guide to creating a REST web service and also shows how the server can be configured.
*
[
Converting a Spring Boot JAR Application to a WAR
](
http://spring.io/guides/gs/convert-jar-to-war/
)
shows you how to run applications in a
*
[
Converting a Spring Boot JAR Application to a WAR
](
http://spring.io/guides/gs/convert-jar-to-war/
)
shows you how to run applications in a
web server as a WAR file.
web server as a WAR file.
spring-boot/src/test/java/org/springframework/boot/context/initializer/ConfigFileApplicationContextInitializerTests.java
View file @
b3229707
...
@@ -170,6 +170,8 @@ public class ConfigFileApplicationContextInitializerTests {
...
@@ -170,6 +170,8 @@ public class ConfigFileApplicationContextInitializerTests {
this
.
initializer
.
initialize
(
this
.
context
);
this
.
initializer
.
initialize
(
this
.
context
);
String
property
=
this
.
context
.
getEnvironment
().
getProperty
(
"my.property"
);
String
property
=
this
.
context
.
getEnvironment
().
getProperty
(
"my.property"
);
assertThat
(
property
,
equalTo
(
"fromspecificlocation"
));
assertThat
(
property
,
equalTo
(
"fromspecificlocation"
));
// The default property source is still there
assertThat
(
this
.
context
.
getEnvironment
().
getProperty
(
"foo"
),
equalTo
(
"bucket"
));
}
}
@Test
@Test
...
...
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