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 1414 <parent >
1515 <groupId >org.springframework.boot</groupId >
1616 <artifactId >spring-boot-starter-parent</artifactId >
17- <version >1.4.2 .RELEASE</version >
17+ <version >2.1.0 .RELEASE</version >
1818 <relativePath /> <!-- lookup parent from repository -->
1919 </parent >
2020
2626 <dependencies >
2727 <dependency >
2828 <groupId >org.springframework.boot</groupId >
29- <artifactId >spring-boot-starter</artifactId >
29+ <artifactId >spring-boot-starter-amqp </artifactId >
3030 </dependency >
3131 <dependency >
3232 <groupId >org.springframework.boot</groupId >
3333 <artifactId >spring-boot-starter-test</artifactId >
3434 <scope >test</scope >
3535 </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 >
4536 </dependencies >
4637
4738 <build >
4839 <plugins >
4940 <plugin >
5041 <groupId >org.springframework.boot</groupId >
5142 <artifactId >spring-boot-maven-plugin</artifactId >
52- <configuration >
53- <fork >true</fork >
54- </configuration >
5543 </plugin >
5644 </plugins >
5745 </build >
Original file line number Diff line number Diff line change 44import org .springframework .boot .autoconfigure .SpringBootApplication ;
55
66@ SpringBootApplication
7- public class Application {
7+ public class RabbitMQApplication {
88
99 public static void main (String [] args ) {
10- SpringApplication .run (Application .class , args );
10+ SpringApplication .run (RabbitMQApplication .class , args );
1111 }
1212}
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
22
3- spring.rabbitmq.host =192.168.0.86
3+ spring.rabbitmq.host =192.168.0.56
44spring.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 77
88@ RunWith (SpringRunner .class )
99@ SpringBootTest
10- public class ApplicationTests {
10+ public class RabbitMQApplicationTests {
1111
1212 @ Test
1313 public void contextLoads () {
You can’t perform that action at this time.
0 commit comments