Skip to content

Commit

Permalink
#1 - adjust for 2 main method application classes
Browse files Browse the repository at this point in the history
  • Loading branch information
obriensystems committed Mar 2, 2021
1 parent 5469482 commit 2c8402b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@SpringBootApplication
public class FieldApplication {

// OpenAPI2SpringBoot has the single main method
public static void main(String[] args) {
SpringApplication.run(FieldApplication.class, args);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public void run(String... arg0) throws Exception {
}
}

public static void main(String[] args) throws Exception {
new SpringApplication(OpenAPI2SpringBoot.class).run(args);
}
//public static void main(String[] args) throws Exception {
// new SpringApplication(OpenAPI2SpringBoot.class).run(args);
//}

static class ExitException extends RuntimeException implements ExitCodeGenerator {
private static final long serialVersionUID = 1L;
Expand Down

0 comments on commit 2c8402b

Please sign in to comment.