Commit 1ccb64c4 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #15645 from huangdenghe

* pr/15645:
  Remove redundant throws Exception
parents 4670770d e5b2aeb5
...@@ -614,7 +614,7 @@ then add a file named `src/main/java/Example.java` to contain the following code ...@@ -614,7 +614,7 @@ then add a file named `src/main/java/Example.java` to contain the following code
return "Hello World!"; return "Hello World!";
} }
public static void main(String[] args) throws Exception { public static void main(String[] args) {
SpringApplication.run(Example.class, args); SpringApplication.run(Example.class, args);
} }
......
...@@ -3080,7 +3080,7 @@ following example: ...@@ -3080,7 +3080,7 @@ following example:
return application.sources(Application.class); return application.sources(Application.class);
} }
public static void main(String[] args) throws Exception { public static void main(String[] args) {
SpringApplication.run(Application.class, args); SpringApplication.run(Application.class, args);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment