mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-26 20:09:02 +00:00
Remove redundant throws Exception
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ public class SampleRedisApplication implements CommandLineRunner {
|
||||
System.out.println("Found key " + key + ", value=" + ops.get(key));
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
// Close the context so it doesn't stay awake listening for redis
|
||||
SpringApplication.run(SampleRedisApplication.class, args).close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user