some refactoring
This commit is contained in:
parent
4d50b53d5b
commit
b34f22439b
1 changed files with 8 additions and 4 deletions
|
|
@ -22,10 +22,13 @@ import java.util.List;
|
||||||
public class IMDGApplication {
|
public class IMDGApplication {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
try {
|
SpringApplicationBuilder builder = new SpringApplicationBuilder(IMDGApplication.class);
|
||||||
SpringApplicationBuilder builder = new SpringApplicationBuilder(IMDGApplication.class);
|
ConfigurableApplicationContext configurableApplicationContext = builder.run(args);
|
||||||
ConfigurableApplicationContext configurableApplicationContext = builder.run(args);
|
tmpLogUncompletedMapStores(configurableApplicationContext);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void tmpLogUncompletedMapStores(ConfigurableApplicationContext configurableApplicationContext) {
|
||||||
|
try {
|
||||||
//Поиск таблиц которым нужно добавить mapStore и вывод результата в консоль
|
//Поиск таблиц которым нужно добавить mapStore и вывод результата в консоль
|
||||||
List<String> nameTables = new ArrayList<>();
|
List<String> nameTables = new ArrayList<>();
|
||||||
Connection jdbcConnection = DriverManager.getConnection("jdbc:postgresql://10.200.200.133:5432/postgres", "clearing", "Aa111111");
|
Connection jdbcConnection = DriverManager.getConnection("jdbc:postgresql://10.200.200.133:5432/postgres", "clearing", "Aa111111");
|
||||||
|
|
@ -60,7 +63,8 @@ public class IMDGApplication {
|
||||||
System.out.println("** Результата поиска таблиц которым нужно добавить mapStore **");
|
System.out.println("** Результата поиска таблиц которым нужно добавить mapStore **");
|
||||||
nameTables.forEach(System.out::println);
|
nameTables.forEach(System.out::println);
|
||||||
System.out.println("**************************************************************");
|
System.out.println("**************************************************************");
|
||||||
} catch (Throwable e) {
|
} catch (
|
||||||
|
Throwable e) {
|
||||||
LoggerFactory.getLogger(IMDGApplication.class).error("STORAGE start failed: {} -> {}", e.getClass().getSimpleName(), e.getMessage());
|
LoggerFactory.getLogger(IMDGApplication.class).error("STORAGE start failed: {} -> {}", e.getClass().getSimpleName(), e.getMessage());
|
||||||
System.exit(-1);
|
System.exit(-1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue