diff --git a/VamPa/pom.xml b/VamPa/pom.xml index 21865e6..1776e29 100644 --- a/VamPa/pom.xml +++ b/VamPa/pom.xml @@ -244,6 +244,20 @@ thumbnailator 0.4.13 + + + + org.quartz-scheduler + quartz-jobs + 2.3.2 + + + + org.quartz-scheduler + quartz + 2.3.2 + + diff --git a/VamPa/src/main/java/com/vam/task/testBatch.java b/VamPa/src/main/java/com/vam/task/testBatch.java new file mode 100644 index 0000000..9b7291d --- /dev/null +++ b/VamPa/src/main/java/com/vam/task/testBatch.java @@ -0,0 +1,22 @@ +package com.vam.task; + +import org.springframework.scheduling.annotation.Scheduled; +import org.springframework.stereotype.Component; + +import lombok.extern.log4j.Log4j; + +@Component +@Log4j +public class testBatch { + + + @Scheduled(cron = "0 * * * * *") + public void testMethod() throws Exception{ + + log.warn("배치 실행 테스트......."); + log.warn("==================================="); + + + } + +} diff --git a/VamPa/src/main/webapp/WEB-INF/spring/root-context.xml b/VamPa/src/main/webapp/WEB-INF/spring/root-context.xml index 6c8fb70..4692b80 100644 --- a/VamPa/src/main/webapp/WEB-INF/spring/root-context.xml +++ b/VamPa/src/main/webapp/WEB-INF/spring/root-context.xml @@ -4,7 +4,9 @@ xmlns:context="http://www.springframework.org/schema/context" xmlns:mybatis-spring="http://mybatis.org/schema/mybatis-spring" xmlns:tx="http://www.springframework.org/schema/tx" + xmlns:task="http://www.springframework.org/schema/task" xsi:schemaLocation="http://mybatis.org/schema/mybatis-spring http://mybatis.org/schema/mybatis-spring-1.2.xsd + http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-4.3.xsd http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.3.xsd"> @@ -51,12 +53,15 @@ + + + diff --git a/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties b/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties index 6ca05fc..9eb479e 100644 --- a/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties +++ b/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven Integration for Eclipse -#Tue Jul 20 15:40:19 KST 2021 +#Sun Jul 25 23:04:40 KST 2021 m2e.projectLocation=C\:\\Users\\sjinj\\git\\Blog_Project2\\VamPa m2e.projectName=VamPa groupId=com.vam diff --git a/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.xml b/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.xml index 21865e6..1776e29 100644 --- a/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.xml +++ b/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.xml @@ -244,6 +244,20 @@ thumbnailator 0.4.13 + + + + org.quartz-scheduler + quartz-jobs + 2.3.2 + + + + org.quartz-scheduler + quartz + 2.3.2 + + diff --git a/VamPa_MySQL/pom.xml b/VamPa_MySQL/pom.xml index 5eabfb5..0f17332 100644 --- a/VamPa_MySQL/pom.xml +++ b/VamPa_MySQL/pom.xml @@ -243,7 +243,21 @@ net.coobird thumbnailator 0.4.13 + + + + + org.quartz-scheduler + quartz-jobs + 2.3.2 + + + + org.quartz-scheduler + quartz + 2.3.2 + diff --git a/VamPa_MySQL/src/main/webapp/WEB-INF/spring/root-context.xml b/VamPa_MySQL/src/main/webapp/WEB-INF/spring/root-context.xml index 41ac2e2..f82e412 100644 --- a/VamPa_MySQL/src/main/webapp/WEB-INF/spring/root-context.xml +++ b/VamPa_MySQL/src/main/webapp/WEB-INF/spring/root-context.xml @@ -4,7 +4,9 @@ xmlns:context="http://www.springframework.org/schema/context" xmlns:mybatis-spring="http://mybatis.org/schema/mybatis-spring" xmlns:tx="http://www.springframework.org/schema/tx" + xmlns:task="http://www.springframework.org/schema/task" xsi:schemaLocation="http://mybatis.org/schema/mybatis-spring http://mybatis.org/schema/mybatis-spring-1.2.xsd + http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-4.3.xsd http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.3.xsd"> @@ -50,11 +52,14 @@ + + + diff --git a/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties b/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties index f61e169..076ecac 100644 --- a/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties +++ b/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven Integration for Eclipse -#Tue Jul 20 15:40:20 KST 2021 +#Sun Jul 25 23:15:48 KST 2021 m2e.projectLocation=C\:\\Users\\sjinj\\git\\Blog_Project2\\VamPa_MySQL m2e.projectName=VamPa_MySQL groupId=com.vam diff --git a/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.xml b/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.xml index 5eabfb5..0f17332 100644 --- a/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.xml +++ b/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.xml @@ -243,7 +243,21 @@ net.coobird thumbnailator 0.4.13 + + + + + org.quartz-scheduler + quartz-jobs + 2.3.2 + + + + org.quartz-scheduler + quartz + 2.3.2 +