Skip to content

Commit e5b2aeb

Browse files
huangdenghesnicoll
authored andcommitted
Remove redundant throws Exception
Closes gh-15645
1 parent 4670770 commit e5b2aeb

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)