File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
spring-boot-project/spring-boot/src/main/java/org/springframework/boot Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ Here is a quick teaser of a complete Spring Boot application in Java:
46
46
return "Hello World!";
47
47
}
48
48
49
- public static void main(String[] args) throws Exception {
49
+ public static void main(String[] args) {
50
50
SpringApplication.run(Example.class, args);
51
51
}
52
52
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2012-2018 the original author or authors.
2
+ * Copyright 2012-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
106
106
*
107
107
* // ... Bean definitions
108
108
*
109
- * public static void main(String[] args) throws Exception {
109
+ * public static void main(String[] args) {
110
110
* SpringApplication.run(MyApplication.class, args);
111
111
* }
112
112
* }
117
117
* customized before being run:
118
118
*
119
119
* <pre class="code">
120
- * public static void main(String[] args) throws Exception {
120
+ * public static void main(String[] args) {
121
121
* SpringApplication application = new SpringApplication(MyApplication.class);
122
122
* // ... customize application settings here
123
123
* application.run(args)
You can’t perform that action at this time.
0 commit comments