Skip to content

Commit f5e961c

Browse files
committed
feat: spring update
1 parent d4be683 commit f5e961c

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

backend/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
*/
1313
plugins {
1414
id 'java'
15-
id 'org.springframework.boot' version '3.1.4'
16-
id 'org.graalvm.buildtools.native' version '0.9.27'
17-
id 'io.spring.dependency-management' version '1.1.3'
18-
id 'org.hibernate.orm' version '6.2.13.Final'
15+
id 'org.springframework.boot' version '3.2.0'
16+
id 'org.graalvm.buildtools.native' version '0.9.28'
17+
id 'io.spring.dependency-management' version '1.1.4'
18+
id 'org.hibernate.orm' version '6.3.1.Final'
1919
}
2020

2121
group = 'ch.xxx'
@@ -44,12 +44,12 @@ dependencies {
4444
implementation 'org.springframework.boot:spring-boot-starter-validation'
4545
implementation 'io.micrometer:micrometer-registry-prometheus'
4646
implementation 'org.liquibase:liquibase-core'
47-
implementation 'com.graphql-java:graphql-java-extended-scalars:19.1'
47+
implementation 'com.graphql-java:graphql-java-extended-scalars:21.0'
4848
implementation 'commons-net:commons-net:3.8.0'
4949
testImplementation 'org.springframework.boot:spring-boot-starter-test'
5050
testImplementation 'org.springframework.security:spring-security-test'
5151
testImplementation 'org.springframework.graphql:spring-graphql-test'
52-
testImplementation group: 'com.tngtech.archunit', name: 'archunit-junit5', version: '1.1.0'
52+
testImplementation group: 'com.tngtech.archunit', name: 'archunit-junit5', version: '1.2.0'
5353

5454
if(project.hasProperty('withAngular')) {
5555
implementation 'org.postgresql:postgresql'

backend/src/main/java/ch/xxx/maps/adapter/controller/CompanySiteController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public CompanySiteController(CompanySiteService companySiteService, EntityDtoMap
4545
}
4646

4747
@QueryMapping
48-
public List<CompanySiteDto> getCompanySiteByTitle(@Argument String title, @Argument Long year,
48+
public List<CompanySiteDto> getCompanySiteByTitle(@Argument("title") String title, @Argument("year") Long year,
4949
DataFetchingEnvironment dataFetchingEnvironment) {
5050
Selections selections = createSelections(dataFetchingEnvironment);
5151
List<CompanySiteDto> companySiteDtos = this.companySiteService
@@ -67,7 +67,7 @@ private Selections createSelections(DataFetchingEnvironment dataFetchingEnvironm
6767
}
6868

6969
@QueryMapping
70-
public CompanySiteDto getCompanySiteById(@Argument Long id, DataFetchingEnvironment dataFetchingEnvironment) {
70+
public CompanySiteDto getCompanySiteById(@Argument("id") Long id, DataFetchingEnvironment dataFetchingEnvironment) {
7171
Selections selections = createSelections(dataFetchingEnvironment);
7272
return this.companySiteService
7373
.findCompanySiteByIdDetached(id, selections.withPolygons(), selections.withRings(),

backend/src/main/resources/application-prod.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
spring.h2.console.enabled=false
21
spring.datasource.initialize=true
32
spring.datasource.url=${POSTGRES_URL:jdbc:postgresql://localhost:5432/maps}
43
spring.datasource.username=${POSTGRES_USER:sven1}
@@ -10,4 +9,5 @@ spring.jpa.hibernate.ddl-auto=validate
109
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults = false
1110
spring.jpa.show-sql=${JPA_SHOW_SQL:false}
1211
spring.h2.console.enabled=${H2_CONSOLE:false}
12+
spring.graphql.graphiql.enabled=false
1313
spring.datasource.hikari.auto-commit=false

backend/src/main/resources/application.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ spring.jpa.show-sql=true
2424
spring.liquibase.change-log=classpath:/dbchangelog/db.changelog-master.xml
2525

2626
server.servlet.session.timeout=30s
27+
spring.threads.virtual.enabled=true
2728

2829
spring.graphql.graphiql.enabled=true
2930
spring.jackson.parser.allow-unquoted-control-chars=true

0 commit comments

Comments
 (0)