[bs-19] Medley of changes supporting integration apps
* Use file adapters in sample instead of internal flow * Add Exception to signature of CommandLineRunner for implementation convenience * Updates for Security snapshots
This commit is contained in:
@@ -33,6 +33,6 @@ public interface CommandLineRunner {
|
||||
* Callback used to run the bean.
|
||||
* @param args incoming main method arguments
|
||||
*/
|
||||
void run(String... args);
|
||||
void run(String... args) throws Exception;
|
||||
|
||||
}
|
||||
|
||||
@@ -423,7 +423,11 @@ public class SpringApplication {
|
||||
.getBeansOfType(CommandLineRunner.class).values());
|
||||
AnnotationAwareOrderComparator.sort(runners);
|
||||
for (CommandLineRunner runner : runners) {
|
||||
runner.run(args);
|
||||
try {
|
||||
runner.run(args);
|
||||
} catch (Exception e) {
|
||||
throw new IllegalStateException("Failed to execute CommandLineRunner", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user