File tree Expand file tree Collapse file tree 4 files changed +9
-21
lines changed Expand file tree Collapse file tree 4 files changed +9
-21
lines changed Original file line number Diff line number Diff line change 14
14
<parent >
15
15
<groupId >org.springframework.boot</groupId >
16
16
<artifactId >spring-boot-starter-parent</artifactId >
17
- <version >1.4.2 .RELEASE</version >
17
+ <version >2.1.0 .RELEASE</version >
18
18
<relativePath /> <!-- lookup parent from repository -->
19
19
</parent >
20
20
26
26
<dependencies >
27
27
<dependency >
28
28
<groupId >org.springframework.boot</groupId >
29
- <artifactId >spring-boot-starter</artifactId >
29
+ <artifactId >spring-boot-starter-amqp </artifactId >
30
30
</dependency >
31
31
<dependency >
32
32
<groupId >org.springframework.boot</groupId >
33
33
<artifactId >spring-boot-starter-test</artifactId >
34
34
<scope >test</scope >
35
35
</dependency >
36
- <dependency >
37
- <groupId >org.springframework.boot</groupId >
38
- <artifactId >spring-boot-starter-amqp</artifactId >
39
- </dependency >
40
- <dependency >
41
- <groupId >org.springframework.boot</groupId >
42
- <artifactId >spring-boot-devtools</artifactId >
43
- <optional >true</optional >
44
- </dependency >
45
36
</dependencies >
46
37
47
38
<build >
48
39
<plugins >
49
40
<plugin >
50
41
<groupId >org.springframework.boot</groupId >
51
42
<artifactId >spring-boot-maven-plugin</artifactId >
52
- <configuration >
53
- <fork >true</fork >
54
- </configuration >
55
43
</plugin >
56
44
</plugins >
57
45
</build >
Original file line number Diff line number Diff line change 4
4
import org .springframework .boot .autoconfigure .SpringBootApplication ;
5
5
6
6
@ SpringBootApplication
7
- public class Application {
7
+ public class RabbitMQApplication {
8
8
9
9
public static void main (String [] args ) {
10
- SpringApplication .run (Application .class , args );
10
+ SpringApplication .run (RabbitMQApplication .class , args );
11
11
}
12
12
}
Original file line number Diff line number Diff line change 1
- spring.application.name =spirng -boot-rabbitmq-example
1
+ spring.application.name =spring -boot-rabbitmq
2
2
3
- spring.rabbitmq.host =192.168.0.86
3
+ spring.rabbitmq.host =192.168.0.56
4
4
spring.rabbitmq.port =5672
5
- spring.rabbitmq.username =admin
6
- spring.rabbitmq.password =123456
5
+ spring.rabbitmq.username =zzq
6
+ spring.rabbitmq.password =zzq
Original file line number Diff line number Diff line change 7
7
8
8
@ RunWith (SpringRunner .class )
9
9
@ SpringBootTest
10
- public class ApplicationTests {
10
+ public class RabbitMQApplicationTests {
11
11
12
12
@ Test
13
13
public void contextLoads () {
You can’t perform that action at this time.
0 commit comments