Skip to content

Commit

Permalink
fixed Java version, 1.8 is needed, renamed application classes
Browse files Browse the repository at this point in the history
  • Loading branch information
dschulten committed Nov 11, 2018
1 parent a47bb3d commit 669aff6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import org.springframework.http.HttpMethod;
import org.springframework.integration.dsl.IntegrationFlow;
import org.springframework.integration.dsl.IntegrationFlows;
import org.springframework.integration.http.dsl.Http;
import org.springframework.integration.webflux.dsl.WebFlux;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
Expand All @@ -15,10 +14,10 @@

@SpringBootApplication
@EnableSwagger2WebFlux
public class SpringIntegrationApplication {
public class SpringIntegrationWebFluxApplication {

public static void main(String[] args) {
SpringApplication.run(SpringIntegrationApplication.class, args);
SpringApplication.run(SpringIntegrationWebFluxApplication.class, args);
}

@Bean
Expand Down
4 changes: 2 additions & 2 deletions springfox-integration-webmvc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ version = '0.0.1-SNAPSHOT'

description = """spring-integration"""

sourceCompatibility = 1.5
targetCompatibility = 1.5
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
@SpringBootApplication
@EnableSwagger2WebMvc
@RestController
public class SpringIntegrationApplication {
public class SpringIntegrationWebMvcApplication {

public static void main(String[] args) {
SpringApplication.run(SpringIntegrationApplication.class, args);
SpringApplication.run(SpringIntegrationWebMvcApplication.class, args);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
import org.springframework.test.web.servlet.result.MockMvcResultMatchers;

import static org.junit.Assert.*;
import static org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.document;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = SpringIntegrationApplication.class)
@SpringBootTest(classes = SpringIntegrationWebMvcApplication.class)
@AutoConfigureMockMvc
@AutoConfigureRestDocs(outputDir = "target/snippets")
public class SpringIntegrationApplicationIT {
Expand Down

0 comments on commit 669aff6

Please sign in to comment.