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
fa22396d
Commit
fa22396d
authored
Jan 24, 2017
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.5.x'
parents
6c508749
1a69a4ff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
11 deletions
+5
-11
AccountService.java
...arayana/src/main/java/sample/narayana/AccountService.java
+1
-3
SampleController.java
.../src/main/java/sample/metrics/redis/SampleController.java
+3
-5
SampleEndpoint.java
...t-context/src/main/java/sample/parent/SampleEndpoint.java
+1
-3
No files found.
spring-boot-samples/spring-boot-sample-jta-narayana/src/main/java/sample/narayana/AccountService.java
View file @
fa22396d
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -18,7 +18,6 @@ package sample.narayana;
import
javax.transaction.Transactional
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.jms.core.JmsTemplate
;
import
org.springframework.stereotype.Service
;
...
...
@@ -30,7 +29,6 @@ public class AccountService {
private
final
AccountRepository
accountRepository
;
@Autowired
public
AccountService
(
JmsTemplate
jmsTemplate
,
AccountRepository
accountRepository
)
{
this
.
jmsTemplate
=
jmsTemplate
;
this
.
accountRepository
=
accountRepository
;
...
...
spring-boot-samples/spring-boot-sample-metrics-redis/src/main/java/sample/metrics/redis/SampleController.java
View file @
fa22396d
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -21,7 +21,6 @@ import java.util.Map;
import
org.hibernate.validator.constraints.NotBlank
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Description
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
...
@@ -33,7 +32,6 @@ public class SampleController {
private
final
HelloWorldProperties
helloWorldProperties
;
@Autowired
public
SampleController
(
HelloWorldProperties
helloWorldProperties
)
{
this
.
helloWorldProperties
=
helloWorldProperties
;
}
...
...
@@ -41,8 +39,8 @@ public class SampleController {
@GetMapping
(
"/"
)
@ResponseBody
public
Map
<
String
,
String
>
hello
()
{
return
Collections
.
singletonMap
(
"message"
,
"Hello "
+
this
.
helloWorldProperties
.
getName
());
return
Collections
.
singletonMap
(
"message"
,
"Hello "
+
this
.
helloWorldProperties
.
getName
());
}
protected
static
class
Message
{
...
...
spring-boot-samples/spring-boot-sample-parent-context/src/main/java/sample/parent/SampleEndpoint.java
View file @
fa22396d
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -19,7 +19,6 @@ package sample.parent;
import
java.io.File
;
import
java.io.FileInputStream
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.integration.annotation.MessageEndpoint
;
import
org.springframework.integration.annotation.ServiceActivator
;
import
org.springframework.util.StreamUtils
;
...
...
@@ -29,7 +28,6 @@ public class SampleEndpoint {
private
final
HelloWorldService
helloWorldService
;
@Autowired
public
SampleEndpoint
(
HelloWorldService
helloWorldService
)
{
this
.
helloWorldService
=
helloWorldService
;
}
...
...
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