import org.springframework.beans.factory.annotation.Autowired;\r
import org.springframework.beans.factory.annotation.Value;\r
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;\r
+import org.springframework.boot.context.event.ApplicationReadyEvent;\r
+import org.springframework.context.event.EventListener;\r
import org.springframework.core.io.Resource;\r
import org.springframework.core.io.support.ResourcePatternResolver;\r
import org.springframework.stereotype.Component;\r
-\r
-import javax.annotation.PostConstruct;\r
import java.io.IOException;\r
import java.nio.charset.Charset;\r
import java.util.List;\r
\r
}\r
\r
- @PostConstruct\r
@SuppressWarnings("unused")\r
+ @EventListener(ApplicationReadyEvent.class)\r
private void initDatabase() {\r
log.info("loading dataTypePath from DIR : {}", dataTypePath);\r
log.info("loading nodeTypePath from DIR : {}", nodeTypePath);\r