diff --git a/src/main/java/com/urpsys/basebatch/config/quartz/QuartzConfig.java b/src/main/java/com/urpsys/basebatch/config/quartz/QuartzConfig.java index 4a0e0778..ef9c35e2 100644 --- a/src/main/java/com/urpsys/basebatch/config/quartz/QuartzConfig.java +++ b/src/main/java/com/urpsys/basebatch/config/quartz/QuartzConfig.java @@ -90,16 +90,19 @@ public class QuartzConfig private Properties quartzProperties() { + log.info(">>>>>>>>>> quartzProperties <<<<<<<<<<"); + String activeProfile = (CommonUtil.nvl(System.getProperty("spring.profiles.active"))); PropertiesFactoryBean propertiesFactoryBean = new PropertiesFactoryBean(); - propertiesFactoryBean.setLocation(new ClassPathResource("quartz-"+activeProfile+".properties")); + String strProFile = "quartz-"+activeProfile+".properties"; + log.info("strProFile [{}]", strProFile); + + propertiesFactoryBean.setLocation(new ClassPathResource(strProFile)); Properties properties = null; - - try { propertiesFactoryBean.afterPropertiesSet(); @@ -118,6 +121,9 @@ public class QuartzConfig { log.error("quartzProperties parse error : {}", e); } + + log.info("<<<<<<<<<< quartzProperties >>>>>>>>>>"); + return properties; } } \ No newline at end of file diff --git a/src/main/java/com/urpsys/basebatch/urpBaseBatchApplication.java b/src/main/java/com/urpsys/basebatch/urpBaseBatchApplication.java index 73593afd..821df0ad 100644 --- a/src/main/java/com/urpsys/basebatch/urpBaseBatchApplication.java +++ b/src/main/java/com/urpsys/basebatch/urpBaseBatchApplication.java @@ -70,6 +70,20 @@ public class urpBaseBatchApplication System.out.println("############# kintex_prod Env ##################"); System.out.println("################################################"); } + // 2026.01.28 나혁제 노원구청 추가 + else if(activeProfile.equals("nowon")) + { + System.out.println("################################################"); + System.out.println("############# nowon Env ########################"); + System.out.println("################################################"); + } + // 2026.02.26 나혁제 양평군청 추가 + else if(activeProfile.equals("yp21")) + { + System.out.println("################################################"); + System.out.println("############# yp21 Env #########################"); + System.out.println("################################################"); + } else { System.out.println("################################################"); diff --git a/src/main/resources/application-local.yml b/src/main/resources/application-local.yml index a77b6446..182758b2 100644 --- a/src/main/resources/application-local.yml +++ b/src/main/resources/application-local.yml @@ -70,8 +70,7 @@ accessKey: ncp_iam_BPAMKR4Le2ali6vfRCsG secretKey: ncp_iam_BPKMKRIOXMe91u5YQoPjmk5WZ2A1FNEcoR friendId: 유알피-uritsm - api_search_server: http://192.168.8.138:48381 # 개발 -# api_search_server: http://192.168.8.138:49381 # 운영 + api_search_server: http://192.168.8.138:48381 # 검색시스템 연동 # kicc 메일서버 api_kic_mail_server : http://localhost:9002 # kicc 메신저 서버 diff --git a/src/main/resources/application-nowon.yml b/src/main/resources/application-nowon.yml new file mode 100644 index 00000000..a2d55830 --- /dev/null +++ b/src/main/resources/application-nowon.yml @@ -0,0 +1,80 @@ +# Service port +# server: +# port: 11030 + +# JPA 설정, JSP 설정 + spring: + devtools: + livereload: + enabled: true + +# Primary db information + primarydb: + driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy + jdbcUrl: jdbc:log4jdbc:mariadb://98.11.2.93:3306/ur_itms_db?characterEncoding=UTF-8&serverTimezone=Asia/Seoul&rewriteBatchedStatements=true + username: g9IwFesTyIloXVpUnfOX0g== + password: E4SOtjDqqO79BQERc/eaTw== + maximumPoolSize: 35 + minimumIdle: 2 + connectionTimeout: 3000 + idleTimeout: 300000 + testOnBorrow: true + validationQuery: SELECT 1 + + # kicinsadb db information + kicinsadb: + driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy + jdbcUrl: jdbc:log4jdbc:oracle:thin:@192.168.8.132:1521:XE + username: Lp1nYnFre15DjG/Y36UNWA== ## TEST01 + password: E4SOtjDqqO79BQERc/eaTw== ## 123456 + maximumPoolSize: 35 + minimumIdle: 2 + connectionTimeout: 3000 + idleTimeout: 300000 + testOnBorrow: true + validationQuery: SELECT 1 + +# SQL Log 관련 setting + log4jdbc: + spylogdelegator: + name: net.sf.log4jdbc.log.slf4j.Slf4jSpyLogDelegator + dump: + sql: + maxlinelength: 0 + + logging.level.jdbc.sqltiming: false + logging.level.jdbc.audit: false + logging.level.jdbc.resultset: false + logging.level.jdbc.connection: false + +# 개발중 + logging.level.jdbc.sqlonly: info + logging.level.jdbc.resultsettable: info +# 운영중 +# logging.level.jdbc.sqlonly: false +# logging.level.jdbc.resultsettable: false +# custom 설정 + custom: + api_server : null + sendmail: + id: tW9kMpd3SiAnf3RQBOZapw== + password: Tkkj8p2PYfZ+AmpQMPLHF8ksj8vrtJouj6xczU8ShM8= + port: 587 + host: smtp.gmail.com + sendEmail: hhjj0701@gmail.com + senderName: 나혁제 + socketFactory-class: javax.net.ssl.SSLSocketFactory + supplier: gmail.com + sendkakaoTalk: + serviceId: ncp:kkobizmsg:kr:349487487272:uritms + accessKey: ncp_iam_BPAMKR4Le2ali6vfRCsG + secretKey: ncp_iam_BPKMKRIOXMe91u5YQoPjmk5WZ2A1FNEcoR + friendId: 유알피-uritsm + api_search_server: http://98.11.2.93:48381 # 개발 + # kicc 메일서버 + api_kic_mail_server : http://localhost:9002 + # kicc 메신저 서버 + api_kic_msg_server : http://localhost:9002 + api_kic_msg_key : testKey + client : + \ No newline at end of file diff --git a/src/main/resources/application-yp21.yml b/src/main/resources/application-yp21.yml new file mode 100644 index 00000000..02b78c9e --- /dev/null +++ b/src/main/resources/application-yp21.yml @@ -0,0 +1,80 @@ +# Service port +# server: +# port: 11030 + +# JPA 설정, JSP 설정 + spring: + devtools: + livereload: + enabled: true + +# Primary db information + primarydb: + driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy + jdbcUrl: jdbc:log4jdbc:mariadb://105.29.2.26:3306/ur_itms_db?characterEncoding=UTF-8&serverTimezone=Asia/Seoul&rewriteBatchedStatements=true + username: g9IwFesTyIloXVpUnfOX0g== + password: E4SOtjDqqO79BQERc/eaTw== + maximumPoolSize: 35 + minimumIdle: 2 + connectionTimeout: 3000 + idleTimeout: 300000 + testOnBorrow: true + validationQuery: SELECT 1 + + # kicinsadb db information + kicinsadb: + driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy + jdbcUrl: jdbc:log4jdbc:oracle:thin:@192.168.8.132:1521:XE + username: Lp1nYnFre15DjG/Y36UNWA== ## TEST01 + password: E4SOtjDqqO79BQERc/eaTw== ## 123456 + maximumPoolSize: 35 + minimumIdle: 2 + connectionTimeout: 3000 + idleTimeout: 300000 + testOnBorrow: true + validationQuery: SELECT 1 + +# SQL Log 관련 setting + log4jdbc: + spylogdelegator: + name: net.sf.log4jdbc.log.slf4j.Slf4jSpyLogDelegator + dump: + sql: + maxlinelength: 0 + + logging.level.jdbc.sqltiming: false + logging.level.jdbc.audit: false + logging.level.jdbc.resultset: false + logging.level.jdbc.connection: false + +# 개발중 + logging.level.jdbc.sqlonly: info + logging.level.jdbc.resultsettable: info +# 운영중 +# logging.level.jdbc.sqlonly: false +# logging.level.jdbc.resultsettable: false +# custom 설정 + custom: + api_server : null + sendmail: + id: tW9kMpd3SiAnf3RQBOZapw== + password: Tkkj8p2PYfZ+AmpQMPLHF8ksj8vrtJouj6xczU8ShM8= + port: 587 + host: smtp.gmail.com + sendEmail: hhjj0701@gmail.com + senderName: 나혁제 + socketFactory-class: javax.net.ssl.SSLSocketFactory + supplier: gmail.com + sendkakaoTalk: + serviceId: ncp:kkobizmsg:kr:349487487272:uritms + accessKey: ncp_iam_BPAMKR4Le2ali6vfRCsG + secretKey: ncp_iam_BPKMKRIOXMe91u5YQoPjmk5WZ2A1FNEcoR + friendId: 유알피-uritsm + api_search_server: http://105.29.2.26:48381 # 개발 + # kicc 메일서버 + api_kic_mail_server : http://localhost:9002 + # kicc 메신저 서버 + api_kic_msg_server : http://localhost:9002 + api_kic_msg_key : testKey + client : + \ No newline at end of file diff --git a/src/main/resources/quartz-nowon.properties b/src/main/resources/quartz-nowon.properties new file mode 100644 index 00000000..d880aa94 --- /dev/null +++ b/src/main/resources/quartz-nowon.properties @@ -0,0 +1,23 @@ +org.quartz.scheduler.instanceName=pooney +org.quartz.scheduler.instanceId=AUTO +org.quartz.scheduler.rmi.export=false +org.quartz.scheduler.rmi.proxy=false +org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool +org.quartz.threadPool.threadCount=3 +org.quartz.context.key.QuartzTopic=QuartzPorperties +org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX +org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate +org.quartz.jobStore.tablePrefix=QRTZ_ +org.quartz.jobStore.isClustered=true +org.quartz.jobStore.clusterCheckinInterval=300000 + +# \uae30\ubcf8\uac12: 15000 (15\ucd08), \ubcc0\uacbd\uac12: 120000 (2\ubd84) + +org.quartz.jobStore.dataSource = primarydb +org.quartz.jobStore.dataSource = pooney +org.quartz.dataSource.pooney.provider=hikaricp +org.quartz.dataSource.pooney.driver = net.sf.log4jdbc.sql.jdbcapi.DriverSpy +org.quartz.dataSource.pooney.URL = jdbc:log4jdbc:mariadb://98.11.2.93:3306/ur_itms_db?characterEncoding=UTF-8&serverTimezone=Asia/Seoul&rewriteBatchedStatements=true +org.quartz.dataSource.pooney.user = g9IwFesTyIloXVpUnfOX0g== +org.quartz.dataSource.pooney.password = E4SOtjDqqO79BQERc/eaTw== +org.quartz.dataSource.pooney.maxConnections = 30 \ No newline at end of file diff --git a/src/main/resources/quartz-yp21.properties b/src/main/resources/quartz-yp21.properties new file mode 100644 index 00000000..491fcb17 --- /dev/null +++ b/src/main/resources/quartz-yp21.properties @@ -0,0 +1,23 @@ +org.quartz.scheduler.instanceName=pooney +org.quartz.scheduler.instanceId=AUTO +org.quartz.scheduler.rmi.export=false +org.quartz.scheduler.rmi.proxy=false +org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool +org.quartz.threadPool.threadCount=3 +org.quartz.context.key.QuartzTopic=QuartzPorperties +org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX +org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate +org.quartz.jobStore.tablePrefix=QRTZ_ +org.quartz.jobStore.isClustered=true +org.quartz.jobStore.clusterCheckinInterval=300000 + +# \uae30\ubcf8\uac12: 15000 (15\ucd08), \ubcc0\uacbd\uac12: 120000 (2\ubd84) + +org.quartz.jobStore.dataSource = primarydb +org.quartz.jobStore.dataSource = pooney +org.quartz.dataSource.pooney.provider=hikaricp +org.quartz.dataSource.pooney.driver = net.sf.log4jdbc.sql.jdbcapi.DriverSpy +org.quartz.dataSource.pooney.URL = jdbc:log4jdbc:mariadb://105.29.2.26:3306/ur_itms_db?characterEncoding=UTF-8&serverTimezone=Asia/Seoul&rewriteBatchedStatements=true +org.quartz.dataSource.pooney.user = g9IwFesTyIloXVpUnfOX0g== +org.quartz.dataSource.pooney.password = E4SOtjDqqO79BQERc/eaTw== +org.quartz.dataSource.pooney.maxConnections = 30 \ No newline at end of file