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
b857a900
Commit
b857a900
authored
Sep 18, 2013
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup trailing whitespace
parent
6e071d60
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
jms.groovy
spring-boot-cli/samples/jms.groovy
+5
-5
ServiceMonitor.java
...ringframework/boot/sample/aop/monitor/ServiceMonitor.java
+1
-1
SampleMongoApplication.java
...mework/boot/sample/data/mongo/SampleMongoApplication.java
+2
-2
SampleMongoApplicationTests.java
...k/boot/sample/data/mongo/SampleMongoApplicationTests.java
+2
-2
No files found.
spring-boot-cli/samples/jms.groovy
View file @
b857a900
...
...
@@ -12,7 +12,7 @@ class JmsExample implements CommandLineRunner {
@Autowired
JmsTemplate
jmsTemplate
@Bean
DefaultMessageListenerContainer
jmsListener
(
ConnectionFactory
connectionFactory
)
{
new
DefaultMessageListenerContainer
([
...
...
@@ -24,8 +24,8 @@ class JmsExample implements CommandLineRunner {
}}
])
}
void
run
(
String
...
args
)
{
void
run
(
String
...
args
)
{
def
messageCreator
=
{
session
->
session
.
createObjectMessage
(
"Greetings from Spring Boot via ActiveMQ"
)
}
as
MessageCreator
...
...
@@ -34,13 +34,13 @@ class JmsExample implements CommandLineRunner {
jmsTemplate
.
send
(
"spring-boot"
,
messageCreator
)
latch
.
await
()
}
}
@Log
class
Receiver
{
CountDownLatch
latch
def
receive
(
String
message
)
{
log
.
info
"Received ${message}"
latch
.
countDown
()
...
...
spring-boot-samples/spring-boot-sample-aop/src/main/java/org/springframework/boot/sample/aop/monitor/ServiceMonitor.java
View file @
b857a900
...
...
@@ -8,7 +8,7 @@ import org.springframework.stereotype.Component;
@Aspect
@Component
public
class
ServiceMonitor
{
@AfterReturning
(
"execution(* *..*Service.*(..))"
)
public
void
logServiceAccess
(
JoinPoint
joinPoint
)
{
System
.
out
.
println
(
"Completed: "
+
joinPoint
);
...
...
spring-boot-samples/spring-boot-sample-data-mongodb/src/main/java/org/springframework/boot/sample/data/mongo/SampleMongoApplication.java
View file @
b857a900
...
...
@@ -27,13 +27,13 @@ import org.springframework.context.annotation.Configuration;
@EnableAutoConfiguration
@ComponentScan
public
class
SampleMongoApplication
implements
CommandLineRunner
{
@Autowired
private
CustomerRepository
repository
;
@Override
public
void
run
(
String
...
args
)
throws
Exception
{
repository
.
deleteAll
();
// save a couple of customers
...
...
spring-boot-samples/spring-boot-sample-data-mongodb/src/test/java/org/springframework/boot/sample/data/mongo/SampleMongoApplicationTests.java
View file @
b857a900
...
...
@@ -27,14 +27,14 @@ import org.springframework.core.NestedCheckedException;
/**
* Tests for {@link SampleMongoApplication}.
*
*
* @author Dave Syer
*/
public
class
SampleMongoApplicationTests
{
@Rule
public
OutputCapture
outputCapture
=
new
OutputCapture
();
@Test
public
void
testDefaultSettings
()
throws
Exception
{
try
{
...
...
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