Merge pull request #15645 from huangdenghe

* pr/15645:
  Remove redundant throws Exception
This commit is contained in:
Stephane Nicoll
2019-01-08 10:42:34 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -614,7 +614,7 @@ then add a file named `src/main/java/Example.java` to contain the following code
return "Hello World!";
}
public static void main(String[] args) throws Exception {
public static void main(String[] args) {
SpringApplication.run(Example.class, args);
}

View File

@@ -3080,7 +3080,7 @@ following example:
return application.sources(Application.class);
}
public static void main(String[] args) throws Exception {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}