Skip to content

Commit 669aff6

Browse files
committed
fixed Java version, 1.8 is needed, renamed application classes
1 parent a47bb3d commit 669aff6

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import org.springframework.http.HttpMethod;
77
import org.springframework.integration.dsl.IntegrationFlow;
88
import org.springframework.integration.dsl.IntegrationFlows;
9-
import org.springframework.integration.http.dsl.Http;
109
import org.springframework.integration.webflux.dsl.WebFlux;
1110
import org.springframework.web.bind.annotation.PostMapping;
1211
import org.springframework.web.bind.annotation.RequestBody;
@@ -15,10 +14,10 @@
1514

1615
@SpringBootApplication
1716
@EnableSwagger2WebFlux
18-
public class SpringIntegrationApplication {
17+
public class SpringIntegrationWebFluxApplication {
1918

2019
public static void main(String[] args) {
21-
SpringApplication.run(SpringIntegrationApplication.class, args);
20+
SpringApplication.run(SpringIntegrationWebFluxApplication.class, args);
2221
}
2322

2423
@Bean

springfox-integration-webmvc/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ version = '0.0.1-SNAPSHOT'
66

77
description = """spring-integration"""
88

9-
sourceCompatibility = 1.5
10-
targetCompatibility = 1.5
9+
sourceCompatibility = 1.8
10+
targetCompatibility = 1.8
1111
tasks.withType(JavaCompile) {
1212
options.encoding = 'UTF-8'
1313
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
@SpringBootApplication
1717
@EnableSwagger2WebMvc
1818
@RestController
19-
public class SpringIntegrationApplication {
19+
public class SpringIntegrationWebMvcApplication {
2020

2121
public static void main(String[] args) {
22-
SpringApplication.run(SpringIntegrationApplication.class, args);
22+
SpringApplication.run(SpringIntegrationWebMvcApplication.class, args);
2323
}
2424

2525

springfox-integration-webmvc/src/test/java/com/escalon/springfox/springintegration/SpringIntegrationApplicationIT.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
1515
import org.springframework.test.web.servlet.result.MockMvcResultMatchers;
1616

17-
import static org.junit.Assert.*;
1817
import static org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.document;
1918

2019
@RunWith(SpringRunner.class)
21-
@SpringBootTest(classes = SpringIntegrationApplication.class)
20+
@SpringBootTest(classes = SpringIntegrationWebMvcApplication.class)
2221
@AutoConfigureMockMvc
2322
@AutoConfigureRestDocs(outputDir = "target/snippets")
2423
public class SpringIntegrationApplicationIT {

0 commit comments

Comments
 (0)