Skip to content

Commit 1ccb64c

Browse files
committed
Merge pull request #15645 from huangdenghe
* pr/15645: Remove redundant throws Exception
2 parents 4670770 + e5b2aeb commit 1ccb64c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ then add a file named `src/main/java/Example.java` to contain the following code
614614
return "Hello World!";
615615
}
616616
617-
public static void main(String[] args) throws Exception {
617+
public static void main(String[] args) {
618618
SpringApplication.run(Example.class, args);
619619
}
620620

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3080,7 +3080,7 @@ following example:
30803080
return application.sources(Application.class);
30813081
}
30823082
3083-
public static void main(String[] args) throws Exception {
3083+
public static void main(String[] args) {
30843084
SpringApplication.run(Application.class, args);
30853085
}
30863086

0 commit comments

Comments
 (0)