Bumping versions
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<parent>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-gateway-integration-tests</artifactId>
|
||||
<version>2.2.8.BUILD-SNAPSHOT</version>
|
||||
<version>3.0.3-SNAPSHOT</version>
|
||||
<relativePath>..</relativePath> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
|
||||
|
||||
@@ -35,10 +35,8 @@ public class MvcFailureAnalyzerApplicationTests {
|
||||
|
||||
@Test
|
||||
public void contextLoads(CapturedOutput output) {
|
||||
assertThatThrownBy(
|
||||
() -> new SpringApplication(MvcFailureAnalyzerApplication.class)
|
||||
.run("--server.port=0")).hasRootCauseInstanceOf(
|
||||
MvcFoundOnClasspathException.class);
|
||||
assertThatThrownBy(() -> new SpringApplication(MvcFailureAnalyzerApplication.class).run("--server.port=0"))
|
||||
.hasRootCauseInstanceOf(MvcFoundOnClasspathException.class);
|
||||
assertThat(output).contains("Spring MVC found on classpath",
|
||||
"Please remove spring-boot-starter-web dependency");
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<parent>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-gateway</artifactId>
|
||||
<version>2.2.8.BUILD-SNAPSHOT</version>
|
||||
<version>3.0.3-SNAPSHOT</version>
|
||||
<relativePath>..</relativePath> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
|
||||
|
||||
@@ -19,12 +19,10 @@ package org.springframework.cloud.gateway.support;
|
||||
import org.springframework.boot.diagnostics.AbstractFailureAnalyzer;
|
||||
import org.springframework.boot.diagnostics.FailureAnalysis;
|
||||
|
||||
public class MvcFoundOnClasspathFailureAnalyzer
|
||||
extends AbstractFailureAnalyzer<MvcFoundOnClasspathException> {
|
||||
public class MvcFoundOnClasspathFailureAnalyzer extends AbstractFailureAnalyzer<MvcFoundOnClasspathException> {
|
||||
|
||||
@Override
|
||||
protected FailureAnalysis analyze(Throwable rootFailure,
|
||||
MvcFoundOnClasspathException cause) {
|
||||
protected FailureAnalysis analyze(Throwable rootFailure, MvcFoundOnClasspathException cause) {
|
||||
String message = "Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway.";
|
||||
String action = "Please remove spring-boot-starter-web dependency.";
|
||||
return new FailureAnalysis(message, action, cause);
|
||||
|
||||
Reference in New Issue
Block a user