Browse Source

Remove redundant throws Exception

Closes gh-15645
pull/15692/head
小呆 7 years ago committed by Stephane Nicoll
parent
commit
e5b2aeb5da
  1. 2
      spring-boot-project/spring-boot-docs/src/main/asciidoc/getting-started.adoc
  2. 2
      spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc

2
spring-boot-project/spring-boot-docs/src/main/asciidoc/getting-started.adoc

@ -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!";
}
public static void main(String[] args) throws Exception {
public static void main(String[] args) {
SpringApplication.run(Example.class, args);
}

2
spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc

@ -3080,7 +3080,7 @@ following example: @@ -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);
}

Loading…
Cancel
Save