Skip to content

Commit 6ef217b

Browse files
committed
feat: atualização das dependêcias.
1 parent e609d60 commit 6ef217b

11 files changed

Lines changed: 52 additions & 29 deletions

.github/workflows/maven-publish.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- uses: actions/checkout@v4
29-
- name: Set up JDK 22
29+
- name: Set up JDK 21
3030
uses: actions/setup-java@v3
3131
with:
32-
java-version: '22'
32+
java-version: '21'
3333
distribution: 'temurin'
3434
cache: maven
3535
- name: Verificando checkstyle
@@ -43,7 +43,7 @@ jobs:
4343
- name: Set up JDK 22
4444
uses: actions/setup-java@v3
4545
with:
46-
java-version: '22'
46+
java-version: '21'
4747
distribution: 'temurin'
4848
cache: maven
4949
- name: Verificando PMD
@@ -54,10 +54,10 @@ jobs:
5454
runs-on: ubuntu-latest
5555
steps:
5656
- uses: actions/checkout@v4
57-
- name: Set up JDK 22
57+
- name: Set up JDK 21
5858
uses: actions/setup-java@v3
5959
with:
60-
java-version: '22'
60+
java-version: '21'
6161
distribution: 'temurin'
6262
cache: maven
6363
- name: Verificando spotbugs
@@ -68,25 +68,25 @@ jobs:
6868
runs-on: ubuntu-latest
6969
steps:
7070
- uses: actions/checkout@v4
71-
- name: Set up JDK 22
71+
- name: Set up JDK 21
7272
uses: actions/setup-java@v3
7373
with:
74-
java-version: '22'
74+
java-version: '21'
7575
distribution: 'temurin'
7676
cache: maven
7777

7878
- name: Teste do projeto
79-
run: mvn -B test -pl api-say-hello
79+
run: mvn -B test
8080

8181
build:
8282
needs: ["test"]
8383
runs-on: ubuntu-latest
8484
steps:
8585
- uses: actions/checkout@v4
86-
- name: Set up JDK 22
86+
- name: Set up JDK 21
8787
uses: actions/setup-java@v3
8888
with:
89-
java-version: '22'
89+
java-version: '21'
9090
distribution: 'temurin'
9191
cache: maven
9292

README.md

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,42 @@
33
# springMessagingWithRabbitMQ
44
Messaging with RabbitMQ
55

6+
Para esse projeto, foi usado o `Corretto-21.0.4.7.1`.
7+
68
## RabbitMQ
79

8-
Só executar o docker compose: `docker compose up -d`
10+
Para subirmos um servidor RabbitMQ em container, executar em um terminal:
911

12+
```shell
13+
docker compose up -d
14+
```
15+
![Terminal](./img/2025-02-12_21-23.png)
1016

1117
### Criar usuário no rabbitMQ
1218

13-
Acessar [http://localhost:15672](http://localhost:15672) e criar o usuário abaixo:
19+
Acessar [http://localhost:15672](http://localhost:15672) (login: **guest** e senha: **guest**) e criar o usuário abaixo usando a interface gráfica:
20+
21+
![Terminal](./img/2025-02-12_21-25.png)
22+
23+
---
24+
- **Username:**: spring_test
25+
- **Password**: spring_test
26+
- **Tags**: monitoring
27+
- **Adicionar ao vhost**: my_vhost
28+
---
29+
30+
![Terminal](./img/2025-02-12_21-28.png)
31+
![Terminal](./img/2025-02-12_21-29.png)
32+
![Terminal](./img/2025-02-12_21-30.png)
33+
34+
Depois de tudo configurado, o usuário criado está o vhost: `my_vhost`
35+
36+
![Terminal](./img/2025-02-12_21-31.png)
1437

15-
**Username:**: spring_test
38+
## Executando a aplicação
1639

17-
**Password**: spring_test
40+
No terminal, digitar: `mvn spring-boot:run`.
1841

19-
**Tags**: monitoring
42+
Essa aplicação envia e recebe a mensagem enviada para a fila.
2043

21-
**Adicionar ao vhost**: my_vhost
44+
![Terminal](./img/2025-02-12_21-45.png)

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
rabbitmq:
3-
image: rabbitmq:3.12.14-management-alpine
3+
image: rabbitmq:4.1-rc-management-alpine
44
container_name: rabbitmq-spring
55
ports:
66
- "5672:5672" # Porta para o protocolo AMQP

img/2025-02-12_21-23.png

51.1 KB
Loading

img/2025-02-12_21-25.png

15.1 KB
Loading

img/2025-02-12_21-28.png

86.6 KB
Loading

img/2025-02-12_21-29.png

77.1 KB
Loading

img/2025-02-12_21-30.png

65.1 KB
Loading

img/2025-02-12_21-31.png

52.7 KB
Loading

img/2025-02-12_21-45.png

111 KB
Loading

0 commit comments

Comments
 (0)