Skip to content

Commit e8df237

Browse files
committed
config: adjusted spring version to 2.7
1 parent 5c267d1 commit e8df237

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
<artifactId>spring-boot-starter-parent</artifactId>
9999
<groupId>org.springframework.boot</groupId>
100100
<relativePath/>
101-
<version>3.3.2</version> <!-- lookup parent from repository -->
101+
<version>2.7.18</version> <!-- lookup parent from repository -->
102102
</parent>
103103
<properties>
104104
<java.version>21</java.version>
@@ -112,5 +112,5 @@
112112
</scm>
113113

114114
<url>https://github.com/richard483/raven-api-client</url>
115-
<version>0.1.1</version>
115+
<version>0.1.1-s2</version>
116116
</project>

src/main/java/com/nephren/raven/apiclient/aop/RavenApiClientMethodInterceptor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import org.springframework.context.ApplicationContextAware;
3232
import org.springframework.core.ParameterizedTypeReference;
3333
import org.springframework.core.type.AnnotationMetadata;
34-
import org.springframework.http.HttpStatusCode;
34+
import org.springframework.http.HttpStatus;
3535
import org.springframework.http.MediaType;
3636
import org.springframework.http.ResponseEntity;
3737
import org.springframework.http.client.reactive.ReactorClientHttpConnector;
@@ -280,7 +280,7 @@ private Mono handleResponseEntity(Mono<? extends WebClient.RequestHeadersSpec<?>
280280
private Mono<WebClient.ResponseSpec> getResponseEntitySpec(
281281
Mono<? extends WebClient.RequestHeadersSpec<
282282
?>> client) {
283-
return client.map(spec -> spec.retrieve().onStatus(HttpStatusCode::isError,
283+
return client.map(spec -> spec.retrieve().onStatus(HttpStatus::isError,
284284
clientResponse -> Mono.empty()));
285285
}
286286

0 commit comments

Comments
 (0)