Skip to content

Commit 8b89322

Browse files
minor polish
1 parent 8bf5a38 commit 8b89322

File tree

5 files changed

+179
-22
lines changed

5 files changed

+179
-22
lines changed

.vscode/launch.json

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,173 @@
1212
"mainClass": "com.example.envers.JpaEnversApplication",
1313
"projectName": "boot-data-envers",
1414
"args": "--spring.profiles.active=local",
15+
"envFile": "${workspaceFolder}/.env",
16+
"vmArgs": " -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=45965 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dspring.jmx.enabled=true -Djava.rmi.server.hostname=localhost -Dspring.application.admin.enabled=true -Dspring.boot.project.name=boot-data-envers"
17+
},
18+
{
19+
"type": "java",
20+
"name": "Spring Boot-CustomSeqApplication<boot-data-customsequence>",
21+
"request": "launch",
22+
"cwd": "${workspaceFolder}",
23+
"mainClass": "com.example.custom.sequence.CustomSeqApplication",
24+
"projectName": "boot-data-customsequence",
25+
"args": "--spring.profiles.active=local",
26+
"envFile": "${workspaceFolder}/.env",
27+
"vmArgs": " -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=45339 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dspring.jmx.enabled=true -Djava.rmi.server.hostname=localhost -Dspring.application.admin.enabled=true -Dspring.boot.project.name=boot-data-customsequence"
28+
},
29+
{
30+
"type": "java",
31+
"name": "Spring Boot-BlazePersistenceApplication<boot-data-keyset-pagination-blaze>",
32+
"request": "launch",
33+
"cwd": "${workspaceFolder}",
34+
"mainClass": "com.example.keysetpagination.BlazePersistenceApplication",
35+
"projectName": "boot-data-keyset-pagination-blaze",
36+
"args": "--spring.profiles.active=local",
37+
"envFile": "${workspaceFolder}/.env",
38+
"vmArgs": " -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=46181 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dspring.jmx.enabled=true -Djava.rmi.server.hostname=localhost -Dspring.application.admin.enabled=true -Dspring.boot.project.name=boot-data-keyset-pagination-blaze"
39+
},
40+
{
41+
"type": "java",
42+
"name": "Spring Boot-WindowPaginationApplication<boot-data-window-pagination>",
43+
"request": "launch",
44+
"cwd": "${workspaceFolder}",
45+
"mainClass": "com.example.keysetpagination.WindowPaginationApplication",
46+
"projectName": "boot-data-window-pagination",
47+
"args": "--spring.profiles.active=local",
48+
"envFile": "${workspaceFolder}/.env",
49+
"vmArgs": " -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=44161 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dspring.jmx.enabled=true -Djava.rmi.server.hostname=localhost -Dspring.application.admin.enabled=true -Dspring.boot.project.name=boot-data-window-pagination"
50+
},
51+
{
52+
"type": "java",
53+
"name": "Spring Boot-TestCustomSeqApplication<boot-data-customsequence>",
54+
"request": "launch",
55+
"cwd": "${workspaceFolder}",
56+
"mainClass": "com.example.custom.sequence.TestCustomSeqApplication",
57+
"projectName": "boot-data-customsequence",
58+
"args": "",
59+
"envFile": "${workspaceFolder}/.env"
60+
},
61+
{
62+
"type": "java",
63+
"name": "Spring Boot-TestJpaEnversApplication<boot-data-envers>",
64+
"request": "launch",
65+
"cwd": "${workspaceFolder}",
66+
"mainClass": "com.example.envers.TestJpaEnversApplication",
67+
"projectName": "boot-data-envers",
68+
"args": "",
69+
"envFile": "${workspaceFolder}/.env"
70+
},
71+
{
72+
"type": "java",
73+
"name": "Spring Boot-TestBlazePersistenceApplication<boot-data-keyset-pagination-blaze>",
74+
"request": "launch",
75+
"cwd": "${workspaceFolder}",
76+
"mainClass": "com.example.keysetpagination.TestBlazePersistenceApplication",
77+
"projectName": "boot-data-keyset-pagination-blaze",
78+
"args": "",
79+
"envFile": "${workspaceFolder}/.env"
80+
},
81+
{
82+
"type": "java",
83+
"name": "Spring Boot-TestGraphQlWebMvcApplication<boot-graphql-webmvc>",
84+
"request": "launch",
85+
"cwd": "${workspaceFolder}",
86+
"mainClass": "com.example.graphql.TestGraphQlWebMvcApplication",
87+
"projectName": "boot-graphql-webmvc",
88+
"args": "",
89+
"envFile": "${workspaceFolder}/.env"
90+
},
91+
{
92+
"type": "java",
93+
"name": "Spring Boot-TestGraphQLWebFluxApplication<boot-graphql-webflux>",
94+
"request": "launch",
95+
"cwd": "${workspaceFolder}",
96+
"mainClass": "com.example.graphql.TestGraphQLWebFluxApplication",
97+
"projectName": "boot-graphql-webflux",
98+
"args": "",
99+
"envFile": "${workspaceFolder}/.env"
100+
},
101+
{
102+
"type": "java",
103+
"name": "Spring Boot-TestGraphQLQueryDSLApplication<boot-graphql-querydsl>",
104+
"request": "launch",
105+
"cwd": "${workspaceFolder}",
106+
"mainClass": "com.example.graphql.querydsl.TestGraphQLQueryDSLApplication",
107+
"projectName": "boot-graphql-querydsl",
108+
"args": "",
109+
"envFile": "${workspaceFolder}/.env"
110+
},
111+
{
112+
"type": "java",
113+
"name": "Spring Boot-TestBatchApplication<batch-boot-jpa-sample>",
114+
"request": "launch",
115+
"cwd": "${workspaceFolder}",
116+
"mainClass": "com.example.bootbatchjpa.TestBatchApplication",
117+
"projectName": "batch-boot-jpa-sample",
118+
"args": "",
119+
"envFile": "${workspaceFolder}/.env"
120+
},
121+
{
122+
"type": "java",
123+
"name": "Spring Boot-TestArchUnitApplication<boot-api-archunit-sample>",
124+
"request": "launch",
125+
"cwd": "${workspaceFolder}",
126+
"mainClass": "com.example.archunit.TestArchUnitApplication",
127+
"projectName": "boot-api-archunit-sample",
128+
"args": "",
129+
"envFile": "${workspaceFolder}/.env"
130+
},
131+
{
132+
"type": "java",
133+
"name": "Spring Boot-TestChaosMonkeyApplication<boot-chaos-monkey>",
134+
"request": "launch",
135+
"cwd": "${workspaceFolder}",
136+
"mainClass": "com.example.choasmonkey.TestChaosMonkeyApplication",
137+
"projectName": "boot-chaos-monkey",
138+
"args": "",
139+
"envFile": "${workspaceFolder}/.env"
140+
},
141+
{
142+
"type": "java",
143+
"name": "Spring Boot-ChaosMonkeyApplication<boot-chaos-monkey>",
144+
"request": "launch",
145+
"cwd": "${workspaceFolder}",
146+
"mainClass": "com.example.choasmonkey.ChaosMonkeyApplication",
147+
"projectName": "boot-chaos-monkey",
148+
"args": "--spring.profiles.active=local",
149+
"envFile": "${workspaceFolder}/.env",
150+
"vmArgs": " -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=44649 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dspring.jmx.enabled=true -Djava.rmi.server.hostname=localhost -Dspring.application.admin.enabled=true -Dspring.boot.project.name=boot-chaos-monkey"
151+
},
152+
{
153+
"type": "java",
154+
"name": "Spring Boot-BatchApplication<batch-boot-jpa-sample>",
155+
"request": "launch",
156+
"cwd": "${workspaceFolder}",
157+
"mainClass": "com.example.bootbatchjpa.BatchApplication",
158+
"projectName": "batch-boot-jpa-sample",
159+
"args": "--spring.profiles.active=local",
160+
"envFile": "${workspaceFolder}/.env",
161+
"vmArgs": " -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=40299 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dspring.jmx.enabled=true -Djava.rmi.server.hostname=localhost -Dspring.application.admin.enabled=true -Dspring.boot.project.name=batch-boot-jpa-sample"
162+
},
163+
{
164+
"type": "java",
165+
"name": "Spring Boot-GraphQlWebMvcApplication<boot-graphql-webmvc>",
166+
"request": "launch",
167+
"cwd": "${workspaceFolder}",
168+
"mainClass": "com.example.graphql.GraphQlWebMvcApplication",
169+
"projectName": "boot-graphql-webmvc",
170+
"args": "--spring.profiles.active=local",
171+
"envFile": "${workspaceFolder}/.env",
172+
"vmArgs": " -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=42699 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dspring.jmx.enabled=true -Djava.rmi.server.hostname=localhost -Dspring.application.admin.enabled=true -Dspring.boot.project.name=boot-graphql-webmvc"
173+
},
174+
{
175+
"type": "java",
176+
"name": "Spring Boot-GraphQLWebFluxApplication<boot-graphql-webflux>",
177+
"request": "launch",
178+
"cwd": "${workspaceFolder}",
179+
"mainClass": "com.example.graphql.GraphQLWebFluxApplication",
180+
"projectName": "boot-graphql-webflux",
181+
"args": "--spring.profiles.active=local",
15182
"envFile": "${workspaceFolder}/.env"
16183
}
17184
]

graphql/boot-graphql-webflux/docker/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ services:
44
postgresqldb:
55
image: postgres:17.2-alpine
66
environment:
7-
- POSTGRES_USER=local
8-
- POSTGRES_PASSWORD=local
9-
- POSTGRES_DB=rest
7+
- POSTGRES_USER=appuser
8+
- POSTGRES_PASSWORD=secret
9+
- POSTGRES_DB=appdb
1010
ports:
1111
- "5432:5432"

graphql/boot-graphql-webflux/src/main/java/com/example/graphql/config/SwaggerConfig.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
import io.swagger.v3.oas.annotations.info.Info;
66
import io.swagger.v3.oas.annotations.info.License;
77
import io.swagger.v3.oas.annotations.servers.Server;
8-
import org.springdoc.core.models.GroupedOpenApi;
9-
import org.springframework.context.annotation.Bean;
108
import org.springframework.context.annotation.Configuration;
119

1210
@Configuration(proxyBeanMethods = false)
@@ -23,13 +21,4 @@
2321
description = "SpringGraphQL Wiki Documentation",
2422
url =
2523
"https://rajadilipkolli.gitbook.io/my-spring-boot-experiments/graphql/boot-graphql-webflux"))
26-
public class SwaggerConfig {
27-
28-
@Bean
29-
GroupedOpenApi publicApi() {
30-
return GroupedOpenApi.builder()
31-
.group("spring-boot")
32-
.packagesToScan("com.example.graphql.controller")
33-
.build();
34-
}
35-
}
24+
class SwaggerConfig {}

graphql/boot-graphql-webflux/src/main/java/com/example/graphql/config/WebFluxConfig.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
package com.example.graphql.config;
22

33
import org.springframework.context.annotation.Configuration;
4+
import org.springframework.lang.NonNull;
45
import org.springframework.web.reactive.config.CorsRegistry;
56
import org.springframework.web.reactive.config.WebFluxConfigurer;
67

7-
@Configuration
8-
public class WebFluxConfig implements WebFluxConfigurer {
8+
@Configuration(proxyBeanMethods = false)
9+
class WebFluxConfig implements WebFluxConfigurer {
910

1011
@Override
11-
public void addCorsMappings(CorsRegistry registry) {
12+
public void addCorsMappings(@NonNull CorsRegistry registry) {
1213
registry.addMapping("/api/**")
1314
.allowedMethods("*")
1415
.allowedHeaders("*")
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
################ Database #####################
2-
spring.r2dbc.url=r2dbc:postgresql://localhost:5432/rest?maxIdleTime=PT60S
3-
spring.r2dbc.username=local
4-
spring.r2dbc.password=local
2+
spring.r2dbc.url=r2dbc:postgresql://localhost:5432/appdb?maxIdleTime=PT60S
3+
spring.r2dbc.username=appuser
4+
spring.r2dbc.password=secret
55

66
#liquibase
7-
spring.liquibase.url=jdbc:postgresql://localhost:5432/rest?maxIdleTime=PT60S
7+
spring.liquibase.url=jdbc:postgresql://localhost:5432/appdb?maxIdleTime=PT60S
88
spring.liquibase.user=${spring.r2dbc.username}
99
spring.liquibase.password=${spring.r2dbc.password}

0 commit comments

Comments
 (0)