Source formatting and clean-up
This commit is contained in:
@@ -13,7 +13,8 @@ public class ProducerApplication implements CommandLineRunner {
|
||||
@Override
|
||||
public void run(String... args) throws Exception {
|
||||
new File("target/input").mkdirs();
|
||||
FileOutputStream stream = new FileOutputStream("target/input/data"+System.currentTimeMillis()+".txt");
|
||||
FileOutputStream stream = new FileOutputStream("target/input/data"
|
||||
+ System.currentTimeMillis() + ".txt");
|
||||
for (String arg : args) {
|
||||
stream.write(arg.getBytes());
|
||||
}
|
||||
|
||||
@@ -38,8 +38,8 @@ public class NonAutoConfigurationBootstrapApplicationTests {
|
||||
private static ConfigurableApplicationContext context;
|
||||
|
||||
@Configuration
|
||||
@Import({ EmbeddedServletContainerAutoConfiguration.class, WebMvcAutoConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class })
|
||||
@Import({ EmbeddedServletContainerAutoConfiguration.class,
|
||||
WebMvcAutoConfiguration.class, PropertyPlaceholderAutoConfiguration.class })
|
||||
@ComponentScan(basePackageClasses = { SampleController.class, HelloWorldService.class })
|
||||
public static class NonAutoConfigurationBootstrapApplication {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user