Remove redundant throws Exception
This commit is contained in:
parent
9cae416755
commit
d65f9b25bc
|
@ -22,7 +22,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||
@SpringBootApplication
|
||||
public class SampleActuatorCustomSecurityApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleActuatorCustomSecurityApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||
@SpringBootApplication
|
||||
public class SampleActuatorLog4J2Application {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleActuatorLog4J2Application.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties
|
|||
@EnableConfigurationProperties(ServiceProperties.class)
|
||||
public class SampleActuatorNoWebApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleActuatorNoWebApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ public class SampleActuatorUiApplication {
|
|||
throw new RuntimeException("Expected exception in controller");
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleActuatorUiApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.springframework.context.annotation.Bean;
|
|||
@EnableConfigurationProperties(ServiceProperties.class)
|
||||
public class SampleActuatorApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleActuatorApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ public class SampleAmqpSimpleApplication {
|
|||
System.out.println(new Date() + ": " + foo);
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleAmqpSimpleApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ public class SampleAntApplication implements CommandLineRunner {
|
|||
System.out.println("Spring Boot Ant Example");
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleAntApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ public class SampleAopApplication implements CommandLineRunner {
|
|||
System.out.println(this.helloWorldService.getHelloMessage());
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleAopApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ public class SampleAtmosphereApplication {
|
|||
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleAtmosphereApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ public class SampleBatchApplication {
|
|||
return this.steps.get("step1").tasklet(tasklet()).build();
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
// System.exit is common for Batch applications since the exit code can be used to
|
||||
// drive a workflow
|
||||
System.exit(SpringApplication
|
||||
|
|
|
@ -61,7 +61,7 @@ public class SampleElasticsearchApplication implements CommandLineRunner {
|
|||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleElasticsearchApplication.class, "--debug").close();
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||
@SpringBootApplication
|
||||
public class SampleDataJpaApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleDataJpaApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ public class SampleLdapApplication implements CommandLineRunner {
|
|||
System.out.println(this.repository.findByPhone("+46 555-123456"));
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleLdapApplication.class, args).close();
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ public class SampleMongoApplication implements CommandLineRunner {
|
|||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleMongoApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ public class SampleNeo4jApplication implements CommandLineRunner {
|
|||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleNeo4jApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||
@SpringBootApplication
|
||||
public class SampleDataRestApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleDataRestApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ public class SampleSolrApplication implements CommandLineRunner {
|
|||
System.out.println();
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleSolrApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.springframework.context.annotation.Bean;
|
|||
@SpringBootApplication
|
||||
public class SampleFlywayApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleFlywayApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ public class SampleIntegrationApplication {
|
|||
.handle(fileWriter()).get();
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleIntegrationApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ public class ProducerApplication implements CommandLineRunner {
|
|||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(ProducerApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ public class SampleJettyJspApplication extends SpringBootServletInitializer {
|
|||
return application.sources(SampleJettyJspApplication.class);
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleJettyJspApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||
@SpringBootApplication
|
||||
public class SampleJettySslApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleJettySslApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||
@SpringBootApplication
|
||||
public class SampleJettyApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleJettyApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||
@SpringBootApplication
|
||||
public class SampleJpaApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleJpaApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||
@SpringBootApplication
|
||||
public class SampleLiquibaseApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleLiquibaseApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ public class SampleLogbackApplication {
|
|||
logger.trace("Sample Trace Message");
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleLogbackApplication.class, args).close();
|
||||
}
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ public class SampleParentContextApplication {
|
|||
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
new SpringApplicationBuilder(Parent.class)
|
||||
.child(SampleParentContextApplication.class).run(args);
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ public class ProducerApplication implements CommandLineRunner {
|
|||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(ProducerApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ public class SampleProfileApplication implements CommandLineRunner {
|
|||
System.out.println(this.helloWorldService.getMessage());
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleProfileApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ public class SamplePropertyValidationApplication implements CommandLineRunner {
|
|||
System.out.println("=========================================");
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
new SpringApplicationBuilder(SamplePropertyValidationApplication.class).run(args);
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ import static org.springframework.web.reactive.function.server.RouterFunctions.r
|
|||
@SpringBootApplication
|
||||
public class SampleSecureWebFluxApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleSecureWebFluxApplication.class);
|
||||
}
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ public class SampleSecureApplication implements CommandLineRunner {
|
|||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleSecureApplication.class, "--debug");
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ public class SampleServletApplication extends SpringBootServletInitializer {
|
|||
return application.sources(SampleServletApplication.class);
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleServletApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||
@SpringBootApplication
|
||||
public class SampleSessionApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleSessionApplication.class);
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ public class SampleSimpleApplication implements CommandLineRunner {
|
|||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleSimpleApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ public class SampleTestNGApplication {
|
|||
};
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleTestNGApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ public class SampleTomcatJspApplication extends SpringBootServletInitializer {
|
|||
return application.sources(SampleTomcatJspApplication.class);
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleTomcatJspApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ public class SampleTomcatTwoConnectorsApplication {
|
|||
return connector;
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleTomcatTwoConnectorsApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||
@SpringBootApplication
|
||||
public class SampleTomcatSslApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleTomcatSslApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ public class SampleTomcatApplication {
|
|||
};
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleTomcatApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||
@SpringBootApplication
|
||||
public class SampleTraditionalApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleTraditionalApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||
@SpringBootApplication
|
||||
public class SampleUndertowSslApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleUndertowSslApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||
@SpringBootApplication
|
||||
public class SampleUndertowApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleUndertowApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||
@SpringBootApplication
|
||||
public class SampleWebFreeMarkerApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleWebFreeMarkerApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ public class SampleGroovyTemplateApplication {
|
|||
};
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleGroovyTemplateApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ public class SampleWebJspApplication extends SpringBootServletInitializer {
|
|||
return application.sources(SampleWebJspApplication.class);
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleWebJspApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ public class SampleMethodSecurityApplication implements WebMvcConfigurer {
|
|||
registry.addViewController("/access").setViewName("access");
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
new SpringApplicationBuilder(SampleMethodSecurityApplication.class).run(args);
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||
@SpringBootApplication
|
||||
public class SampleWebMustacheApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleWebMustacheApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ public class SampleWebSecureCustomApplication implements WebMvcConfigurer {
|
|||
registry.addViewController("/login").setViewName("login");
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
new SpringApplicationBuilder(SampleWebSecureCustomApplication.class).run(args);
|
||||
}
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ public class SampleWebSecureJdbcApplication implements WebMvcConfigurer {
|
|||
registry.addViewController("/login").setViewName("login");
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
new SpringApplicationBuilder(SampleWebSecureJdbcApplication.class).run(args);
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ public class SampleWebSecureApplication implements WebMvcConfigurer {
|
|||
registry.addViewController("/login").setViewName("login");
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
new SpringApplicationBuilder(SampleWebSecureApplication.class).run(args);
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ public class SampleWebStaticApplication extends SpringBootServletInitializer {
|
|||
return application.sources(SampleWebStaticApplication.class);
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleWebStaticApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ public class SampleWebUiApplication {
|
|||
};
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleWebUiApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ import static org.springframework.web.reactive.function.server.RouterFunctions.r
|
|||
@SpringBootApplication
|
||||
public class SampleWebFluxApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleWebFluxApplication.class);
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||
@SpringBootApplication
|
||||
public class SampleWebServicesApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleWebServicesApplication.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ public class SampleSpringXmlApplication implements CommandLineRunner {
|
|||
System.out.println(this.helloWorldService.getHelloMessage());
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication application = new SpringApplication();
|
||||
application.setSources(Collections.singleton(CONTEXT_XML));
|
||||
application.run(args);
|
||||
|
|
Loading…
Reference in New Issue