File tree 3 files changed +5
-11
lines changed
spring-boot-sample-jta-narayana/src/main/java/sample/narayana
spring-boot-sample-metrics-redis/src/main/java/sample/metrics/redis
spring-boot-sample-parent-context/src/main/java/sample/parent
3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2012-2016 the original author or authors.
2
+ * Copyright 2012-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
18
18
19
19
import javax .transaction .Transactional ;
20
20
21
- import org .springframework .beans .factory .annotation .Autowired ;
22
21
import org .springframework .jms .core .JmsTemplate ;
23
22
import org .springframework .stereotype .Service ;
24
23
@@ -30,7 +29,6 @@ public class AccountService {
30
29
31
30
private final AccountRepository accountRepository ;
32
31
33
- @ Autowired
34
32
public AccountService (JmsTemplate jmsTemplate , AccountRepository accountRepository ) {
35
33
this .jmsTemplate = jmsTemplate ;
36
34
this .accountRepository = accountRepository ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2012-2016 the original author or authors.
2
+ * Copyright 2012-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
21
21
22
22
import org .hibernate .validator .constraints .NotBlank ;
23
23
24
- import org .springframework .beans .factory .annotation .Autowired ;
25
24
import org .springframework .context .annotation .Description ;
26
25
import org .springframework .stereotype .Controller ;
27
26
import org .springframework .web .bind .annotation .GetMapping ;
@@ -33,16 +32,15 @@ public class SampleController {
33
32
34
33
private final HelloWorldProperties helloWorldProperties ;
35
34
36
- @ Autowired
37
35
public SampleController (HelloWorldProperties helloWorldProperties ) {
38
36
this .helloWorldProperties = helloWorldProperties ;
39
37
}
40
38
41
39
@ GetMapping ("/" )
42
40
@ ResponseBody
43
41
public Map <String , String > hello () {
44
- return Collections .singletonMap ("message" , "Hello " +
45
- this .helloWorldProperties .getName ());
42
+ return Collections .singletonMap ("message" ,
43
+ "Hello " + this .helloWorldProperties .getName ());
46
44
}
47
45
48
46
protected static class Message {
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2012-2016 the original author or authors.
2
+ * Copyright 2012-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
19
19
import java .io .File ;
20
20
import java .io .FileInputStream ;
21
21
22
- import org .springframework .beans .factory .annotation .Autowired ;
23
22
import org .springframework .integration .annotation .MessageEndpoint ;
24
23
import org .springframework .integration .annotation .ServiceActivator ;
25
24
import org .springframework .util .StreamUtils ;
@@ -29,7 +28,6 @@ public class SampleEndpoint {
29
28
30
29
private final HelloWorldService helloWorldService ;
31
30
32
- @ Autowired
33
31
public SampleEndpoint (HelloWorldService helloWorldService ) {
34
32
this .helloWorldService = helloWorldService ;
35
33
}
You can’t perform that action at this time.
0 commit comments