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
bec1c8f0
Commit
bec1c8f0
authored
Nov 05, 2013
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
d784cb6a
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
104 additions
and
112 deletions
+104
-112
book.groovy
spring-boot-cli/samples/book.groovy
+3
-3
book_and_tests.groovy
spring-boot-cli/samples/book_and_tests.groovy
+8
-8
failures.groovy
spring-boot-cli/samples/failures.groovy
+1
-2
jms.groovy
spring-boot-cli/samples/jms.groovy
+4
-6
job.groovy
spring-boot-cli/samples/job.groovy
+6
-8
rabbit.groovy
spring-boot-cli/samples/rabbit.groovy
+48
-49
reactor.groovy
spring-boot-cli/samples/reactor.groovy
+5
-7
runner.groovy
spring-boot-cli/samples/runner.groovy
+0
-2
spock.groovy
spring-boot-cli/samples/spock.groovy
+10
-10
template.groovy
spring-boot-cli/samples/template.groovy
+0
-2
test.groovy
spring-boot-cli/samples/test.groovy
+6
-6
tx.groovy
spring-boot-cli/samples/tx.groovy
+6
-7
web.groovy
spring-boot-cli/samples/web.groovy
+0
-2
SpringApplicationBuilder.java
...pringframework/boot/builder/SpringApplicationBuilder.java
+7
-0
No files found.
spring-boot-cli/samples/book.groovy
View file @
bec1c8f0
spring-boot-cli/samples/book_and_tests.groovy
View file @
bec1c8f0
spring-boot-cli/samples/failures.groovy
View file @
bec1c8f0
...
@@ -33,5 +33,4 @@ class FailingSpockTest extends Specification {
...
@@ -33,5 +33,4 @@ class FailingSpockTest extends Specification {
//throw new RuntimeException("This should fail!")
//throw new RuntimeException("This should fail!")
true
==
false
true
==
false
}
}
}
}
spring-boot-cli/samples/jms.groovy
View file @
bec1c8f0
...
@@ -34,13 +34,11 @@ class JmsExample implements CommandLineRunner {
...
@@ -34,13 +34,11 @@ class JmsExample implements CommandLineRunner {
jmsTemplate
.
send
(
"spring-boot"
,
messageCreator
)
jmsTemplate
.
send
(
"spring-boot"
,
messageCreator
)
latch
.
await
()
latch
.
await
()
}
}
}
}
@Log
@Log
class
Receiver
{
class
Receiver
{
CountDownLatch
latch
CountDownLatch
latch
def
receive
(
String
message
)
{
def
receive
(
String
message
)
{
log
.
info
"Received ${message}"
log
.
info
"Received ${message}"
latch
.
countDown
()
latch
.
countDown
()
...
...
spring-boot-cli/samples/job.groovy
View file @
bec1c8f0
...
@@ -31,5 +31,3 @@ class JobConfig {
...
@@ -31,5 +31,3 @@ class JobConfig {
return
steps
.
get
(
"step1"
).
tasklet
(
tasklet
()).
build
()
return
steps
.
get
(
"step1"
).
tasklet
(
tasklet
()).
build
()
}
}
}
}
spring-boot-cli/samples/rabbit.groovy
View file @
bec1c8f0
...
@@ -50,7 +50,6 @@ class RabbitExample implements CommandLineRunner {
...
@@ -50,7 +50,6 @@ class RabbitExample implements CommandLineRunner {
rabbitTemplate
.
convertAndSend
(
queueName
,
"Greetings from Spring Boot via RabbitMQ"
)
rabbitTemplate
.
convertAndSend
(
queueName
,
"Greetings from Spring Boot via RabbitMQ"
)
latch
.
await
()
latch
.
await
()
}
}
}
}
@Log
@Log
...
...
spring-boot-cli/samples/reactor.groovy
View file @
bec1c8f0
...
@@ -28,5 +28,3 @@ class Runner implements CommandLineRunner {
...
@@ -28,5 +28,3 @@ class Runner implements CommandLineRunner {
latch
.
countDown
()
latch
.
countDown
()
}
}
}
}
spring-boot-cli/samples/runner.groovy
View file @
bec1c8f0
...
@@ -6,5 +6,3 @@ class Runner implements CommandLineRunner {
...
@@ -6,5 +6,3 @@ class Runner implements CommandLineRunner {
print
"Hello World!"
print
"Hello World!"
}
}
}
}
spring-boot-cli/samples/spock.groovy
View file @
bec1c8f0
spring-boot-cli/samples/template.groovy
View file @
bec1c8f0
...
@@ -21,5 +21,3 @@ class MyService {
...
@@ -21,5 +21,3 @@ class MyService {
return
"World"
return
"World"
}
}
}
}
spring-boot-cli/samples/test.groovy
View file @
bec1c8f0
spring-boot-cli/samples/tx.groovy
View file @
bec1c8f0
...
@@ -13,6 +13,5 @@ class Example implements CommandLineRunner {
...
@@ -13,6 +13,5 @@ class Example implements CommandLineRunner {
void
run
(
String
...
args
)
{
void
run
(
String
...
args
)
{
println
"Foo count="
+
jdbcTemplate
.
queryForObject
(
"SELECT COUNT(*) from FOO"
,
Integer
)
println
"Foo count="
+
jdbcTemplate
.
queryForObject
(
"SELECT COUNT(*) from FOO"
,
Integer
)
}
}
}
}
spring-boot-cli/samples/web.groovy
View file @
bec1c8f0
...
@@ -19,5 +19,3 @@ class MyService {
...
@@ -19,5 +19,3 @@ class MyService {
return
"World!"
;
return
"World!"
;
}
}
}
}
spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java
View file @
bec1c8f0
...
@@ -63,12 +63,19 @@ import org.springframework.core.io.ResourceLoader;
...
@@ -63,12 +63,19 @@ import org.springframework.core.io.ResourceLoader;
public
class
SpringApplicationBuilder
{
public
class
SpringApplicationBuilder
{
private
SpringApplication
application
;
private
SpringApplication
application
;
private
ConfigurableApplicationContext
context
;
private
ConfigurableApplicationContext
context
;
private
SpringApplicationBuilder
parent
;
private
SpringApplicationBuilder
parent
;
private
AtomicBoolean
running
=
new
AtomicBoolean
(
false
);
private
AtomicBoolean
running
=
new
AtomicBoolean
(
false
);
private
Set
<
Object
>
sources
=
new
LinkedHashSet
<
Object
>();
private
Set
<
Object
>
sources
=
new
LinkedHashSet
<
Object
>();
private
Map
<
String
,
Object
>
defaultProperties
=
new
LinkedHashMap
<
String
,
Object
>();
private
Map
<
String
,
Object
>
defaultProperties
=
new
LinkedHashMap
<
String
,
Object
>();
private
ConfigurableEnvironment
environment
;
private
ConfigurableEnvironment
environment
;
private
Set
<
String
>
additionalProfiles
=
new
LinkedHashSet
<
String
>();
private
Set
<
String
>
additionalProfiles
=
new
LinkedHashSet
<
String
>();
private
Set
<
ApplicationContextInitializer
<?>>
initializers
=
new
LinkedHashSet
<
ApplicationContextInitializer
<?>>();
private
Set
<
ApplicationContextInitializer
<?>>
initializers
=
new
LinkedHashSet
<
ApplicationContextInitializer
<?>>();
...
...
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