From e5b2aeb5da88ce75eae44a4af146043d2bee7508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=91=86?= Date: Tue, 8 Jan 2019 12:42:30 +0800 Subject: [PATCH] Remove redundant throws Exception Closes gh-15645 --- .../spring-boot-docs/src/main/asciidoc/getting-started.adoc | 2 +- .../spring-boot-docs/src/main/asciidoc/howto.adoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/getting-started.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/getting-started.adoc index b247a84592..b399bf8cf8 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/getting-started.adoc +++ b/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 return "Hello World!"; } - public static void main(String[] args) throws Exception { + public static void main(String[] args) { SpringApplication.run(Example.class, args); } diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc index 6e0992081c..733c4d4d98 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -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); }