mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Remove redundant throws Exception
Closes gh-15645
This commit is contained in:
parent
4670770da9
commit
e5b2aeb5da
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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…
Reference in New Issue
Block a user