|
@@ -1,8 +1,9 @@
|
|
|
package com.etotem.cfc.config;
|
|
package com.etotem.cfc.config;
|
|
|
|
|
|
|
|
import com.etotem.cfc.mapper.*;
|
|
import com.etotem.cfc.mapper.*;
|
|
|
-import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
|
|
+import org.slf4j.Logger;
|
|
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.boot.CommandLineRunner;
|
|
import org.springframework.boot.CommandLineRunner;
|
|
|
import org.springframework.core.io.ResourceLoader;
|
|
import org.springframework.core.io.ResourceLoader;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
@@ -15,10 +16,11 @@ import java.util.List;
|
|
|
import java.util.regex.Matcher;
|
|
import java.util.regex.Matcher;
|
|
|
import java.util.regex.Pattern;
|
|
import java.util.regex.Pattern;
|
|
|
|
|
|
|
|
-@Slf4j
|
|
|
|
|
@Component
|
|
@Component
|
|
|
public class DatabaseInitializer implements CommandLineRunner {
|
|
public class DatabaseInitializer implements CommandLineRunner {
|
|
|
|
|
|
|
|
|
|
+ private static final Logger log = LoggerFactory.getLogger(DatabaseInitializer.class);
|
|
|
|
|
+
|
|
|
@Resource
|
|
@Resource
|
|
|
private JdbcTemplate jdbcTemplate;
|
|
private JdbcTemplate jdbcTemplate;
|
|
|
|
|
|