Skip to content

Commit 6c17290

Browse files
committed
RabbitMQ
1 parent da902e1 commit 6c17290

File tree

4 files changed

+9
-21
lines changed

4 files changed

+9
-21
lines changed

spring-boot-rabbitmq/pom.xml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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

@@ -26,32 +26,20 @@
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>

spring-boot-rabbitmq/src/main/java/com/neo/Application.java renamed to spring-boot-rabbitmq/src/main/java/com/neo/RabbitMQApplication.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import 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
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
44
spring.rabbitmq.port=5672
5-
spring.rabbitmq.username=admin
6-
spring.rabbitmq.password=123456
5+
spring.rabbitmq.username=zzq
6+
spring.rabbitmq.password=zzq

spring-boot-rabbitmq/src/test/java/com/neo/ApplicationTests.java renamed to spring-boot-rabbitmq/src/test/java/com/neo/RabbitMQApplicationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
@RunWith(SpringRunner.class)
99
@SpringBootTest
10-
public class ApplicationTests {
10+
public class RabbitMQApplicationTests {
1111

1212
@Test
1313
public void contextLoads() {

0 commit comments

Comments
 (0)