diff --git a/pom.xml b/pom.xml index 0da4220..a9fe660 100644 --- a/pom.xml +++ b/pom.xml @@ -1,10 +1,19 @@ 4.0.0 + + + org.springframework.boot + spring-boot-starter-parent + 2.7.16 + + + cokr.xit.interfaces xit-lvis-rest - war 0.0.1-SNAPSHOT + jar + lvis-rest Maven Webapp http://maven.apache.org @@ -45,6 +54,23 @@ + + cokr.xit.boot + xit-foundation-starter + 23.04.01-SNAPSHOT + + + + org.springdoc + springdoc-openapi-ui + 1.7.0 + + + org.springdoc + springdoc-openapi-javadoc + 1.7.0 + + cokr.xit.interfaces xit-lvis @@ -55,11 +81,39 @@ xit-lvis-rest + + org.apache.maven.plugins + maven-compiler-plugin + + + + com.github.therapi + therapi-runtime-javadoc-scribe + 0.15.0 + + + + + + org.springframework.boot + spring-boot-maven-plugin + + deploy + + + org.projectlombok + lombok + + + + + diff --git a/src/main/java/cokr/xit/interfaces/lvis/test/LvisTestApplication.java b/src/main/java/cokr/xit/interfaces/lvis/test/LvisTestApplication.java new file mode 100644 index 0000000..3c1dc81 --- /dev/null +++ b/src/main/java/cokr/xit/interfaces/lvis/test/LvisTestApplication.java @@ -0,0 +1,23 @@ +package cokr.xit.interfaces.lvis.test; + +import org.springframework.boot.SpringApplication; +import org.springframework.context.annotation.Bean; + +import cokr.xit.foundation.boot.FoundationApplication; +import io.swagger.v3.oas.models.OpenAPI; +import io.swagger.v3.oas.models.info.Info; + +//@ImportResource("classpath:spring/context-*.xml") +public class LvisTestApplication extends FoundationApplication { + public static void main(String[] args) { + SpringApplication.run(LvisTestApplication.class, args); + } + + @Bean + public OpenAPI openAPI() { + return new OpenAPI() + .info(new Info() + .title("외부 연계 테스트") + ); + } +} \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..7c95c41 --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,46 @@ +server: + port: 18080 + servlet: + context-path: / + +spring: + application: + name: lvis-test + + main: + allow-bean-definition-overriding: true + sql: + init: + platform: mariadb + + datasource: + hikari: + driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy + jdbc-url: jdbc:log4jdbc:mariadb://105.19.10.99:53306/electricparking?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Seoul&useSSL=false&autocommit=false + username: root + password: xit5811807 +# jdbc-url: jdbc:log4jdbc:mariadb://211.119.124.9:4407/platform?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Seoul&useSSL=false&autocommit=false +# username: fimsweb +# password: fimsweb!@ + auto-commit: false + + mvc: + static-path-pattern: /resources/**,/files/** + web: + resources: + static-locations: /resources/,file:files/ + +messageSource: + basenames: + - classpath:message/message-common + - classpath:org/egovframe/rte/fdl/property/messages/properties + +propertyService: + properties: + - tempDir: C:\temp + - pageUnit: 10 + - pageSize: 10 + - permitAccess: /intf/**/* + extFileName: + - encoding: UTF-8 + filename: classpath*:intf-conf/xit-lvis.properties diff --git a/src/main/resources/intf-conf/gpki.conf b/src/main/resources/intf-conf/gpki.conf new file mode 100644 index 0000000..20787d1 --- /dev/null +++ b/src/main/resources/intf-conf/gpki.conf @@ -0,0 +1,25 @@ +{ + "license": "C:\\GPKI\\Lic", /* 이용기관 GPKI API 라이센스 디렉토리 */ + + "charset": "UTF-8", /* 문자셋 */ + + "server": { + "local": "SVR4050545002", /* 이용기관(용인, ep_yi) 서버 CN */ + "targets": "SVR1500000015" /* 대상기관 서버인증서 아이디, 여러 개일 경우 컴마(,)로 구분 */ + }, + + "ldapUrl": "ldap://10.1.7.118:389/cn=", /* 대상기관 인증서 다운로드를 위한 행정망 LDAP URL */ + /*"ldapUrl": "ldap://152.99.57.127:389/cn=", 대상기관 인증서 다운로드를 위한 인터넷망 LDAP URL */ + "certDir": "C:\\GPKI\\Certificate\\class1", /* 서버 인증서, 키 저장 디렉토리 */ + + "env": { /* 이용기관 서버 인증서 */ + "certFile": "SVR4050545002_env.cer", + "privateKeyFile": "SVR4050545002_env.key", + "privateKeyPassword": "rlgneorl3395!" + }, + "sig": { /* 이용기관 서버 전자서명 */ + "certFile": "SVR4050545002_sig.cer", + "privateKeyFile": "SVR4050545002_sig.key", + "privateKeyPassword": "rlgneorl3395!" + } +} \ No newline at end of file diff --git a/src/main/resources/intf-conf/public-info.conf b/src/main/resources/intf-conf/public-info.conf new file mode 100644 index 0000000..7f2c663 --- /dev/null +++ b/src/main/resources/intf-conf/public-info.conf @@ -0,0 +1,13 @@ +{ + "basic-info-ext": { /* 서비스 api 이름 */ + "apiKey": "59f26bf09ed196bfbd98210388c4c6ea9dd0f77bde3f35526f082647a305325b", /* 행정정보 공동이용 서비스가 발급한 api key */ + /*"apiUrl": "http://10.188.225.25:29001/piss/api/molit/SignguCarBassMatterInqireService", /* 미래행공 운영 호출 URL (행정망) */ + "apiUrl": "http://10.188.225.94:29001/piss/api/molit/SignguCarBassMatterInqireService", /* 미래행공 개발 호출 URL (행정망) */ + + "userServerId": "SVR4050545002", /* 이용기관 gpki server id */ + "providerServerId": "SVR1500000015", /* 보유기관 gpki server id */ + + "gpki": true, /* 데이터 암복호화 사용 여부 */ + "mock": false /* 보유기관 가상 데이터 사용 여부 */ + } +} \ No newline at end of file diff --git a/src/main/resources/intf-conf/xit-lvis.properties b/src/main/resources/intf-conf/xit-lvis.properties new file mode 100644 index 0000000..38d525b --- /dev/null +++ b/src/main/resources/intf-conf/xit-lvis.properties @@ -0,0 +1,34 @@ +#시군구코드(필수) +lvis.sigungu.code=41460 +#담당자 주민등록번호 +lvis.charger.ihinum= +#담당자 IP 어드레스 +lvis.charger.ip_adres= +#담당자명 +lvis.charger.nm=이광진 +#담당자 연락처 +lvis.charger.wrc_telno=032-440-3963 + +#정보시스템 ID(필수) +lvis.info_sys.id=41-404 +#정보시스템 IP(필수) +lvis.info_sys.ip=105.19.10.99 +#정보시스템 MAC 어드레스 +lvis.info_sys.macaddress=EC:EB:B8:97:F2:14 + +#암호화키 +lvis.enc.key=0BCE7F19897CEA91 +#암호화키 그룹 +lvis.enc.key_group=1 +#암호화키 번호 +lvis.enc.key_no=1 + +#lvis 사용 서비스 (production || test || local) +lvis.host.active=local +#lvis 운영 서비스 주소 +lvis.host.production=http://auto.car.go.kr:39700/lvis/services/WsFrontController +#lvis 테스트 서비스 주소 +lvis.host.test=http://10.98.198.199:9700/lvis/services/WsFrontController + +#자동차 기본사항 조회 로그 저장 여부(true || false) +lvis.log.basicInfo=true \ No newline at end of file diff --git a/src/main/resources/intf-conf/xit-lvis2.properties b/src/main/resources/intf-conf/xit-lvis2.properties new file mode 100644 index 0000000..8e53f68 --- /dev/null +++ b/src/main/resources/intf-conf/xit-lvis2.properties @@ -0,0 +1,34 @@ +#시군구코드(필수) +lvis.sigungu.code=28000 +#담당자 주민등록번호 +lvis.charger.ihinum= +#담당자 IP 어드레스 +lvis.charger.ip_adres= +#담당자명 +lvis.charger.nm=이광진 +#담당자 연락처 +lvis.charger.wrc_telno=032-440-3963 + +#정보시스템 ID(필수) +lvis.info_sys.id=28-230 +#정보시스템 IP(필수) +lvis.info_sys.ip=101.0.115.13 +#정보시스템 MAC 어드레스 +lvis.info_sys.macaddress=EC:EB:B8:97:F2:14 + +#암호화키 +lvis.enc.key=0BCE7F19897CEA91 +#암호화키 그룹 +lvis.enc.key_group=1 +#암호화키 번호 +lvis.enc.key_no=1 + +#lvis 사용 서비스 (production || test || local) +lvis.host.active=local +#lvis 운영 서비스 주소 +lvis.host.production=http://auto.car.go.kr:39700/lvis/services/WsFrontController +#lvis 테스트 서비스 주소 +lvis.host.test=http://10.98.198.199:9700/lvis/services/WsFrontController + +#자동차 기본사항 조회 로그 저장 여부(true || false) +lvis.log.basicInfo=true \ No newline at end of file diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml deleted file mode 100644 index e2e2826..0000000 --- a/src/main/resources/log4j2.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml new file mode 100644 index 0000000..964e3db --- /dev/null +++ b/src/main/resources/logback-spring.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + ${LOG_PATTERN} + + + + + ${LOG_PATH}/${LOG_FILE_NAME}.log + + ${LOG_PATTERN} + + + + + ${LOG_PATH}/${LOG_FILE_NAME}.%d{yyyy-MM-dd}_%i.log + + 10MB + + + 30 + + + + + + + error + ACCEPT + DENY + + + ${LOG_PATH}/${ERR_LOG_FILE_NAME}.log + + ${LOG_PATTERN} + + + + + ${LOG_PATH}/${ERR_LOG_FILE_NAME}.%d{yyyy-MM-dd}_%i.log + + + 10MB + + + 60 + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/properties/xit-lvis.properties b/src/main/resources/properties/xit-lvis.properties deleted file mode 100644 index ce124c2..0000000 --- a/src/main/resources/properties/xit-lvis.properties +++ /dev/null @@ -1,34 +0,0 @@ -#\uc2dc\uad70\uad6c\ucf54\ub4dc(\ud544\uc218) -lvis.sigungu.code=28000 -#\ub2f4\ub2f9\uc790 \uc8fc\ubbfc\ub4f1\ub85d\ubc88\ud638 -lvis.charger.ihinum= -#\ub2f4\ub2f9\uc790 IP \uc5b4\ub4dc\ub808\uc2a4 -lvis.charger.ip_adres= -#\ub2f4\ub2f9\uc790\uba85 -lvis.charger.nm=\uc774\uad11\uc9c4 -#\ub2f4\ub2f9\uc790 \uc5f0\ub77d\ucc98 -lvis.charger.wrc_telno=032-440-3963 - -#\uc815\ubcf4\uc2dc\uc2a4\ud15c ID(\ud544\uc218) -lvis.info_sys.id=28-230 -#\uc815\ubcf4\uc2dc\uc2a4\ud15c IP(\ud544\uc218) -lvis.info_sys.ip=101.0.115.13 -#\uc815\ubcf4\uc2dc\uc2a4\ud15c MAC \uc5b4\ub4dc\ub808\uc2a4 -lvis.info_sys.macaddress=EC:EB:B8:97:F2:14 - -#\uc554\ud638\ud654\ud0a4 -lvis.enc.key=0BCE7F19897CEA91 -#\uc554\ud638\ud654\ud0a4 \uadf8\ub8f9 -lvis.enc.key_group=1 -#\uc554\ud638\ud654\ud0a4 \ubc88\ud638 -lvis.enc.key_no=1 - -#lvis \uc0ac\uc6a9 \uc11c\ube44\uc2a4 (production || test || local) -lvis.host.active=local -#lvis \uc6b4\uc601 \uc11c\ube44\uc2a4 \uc8fc\uc18c -lvis.host.production=http://auto.car.go.kr:39700/lvis/services/WsFrontController -#lvis \ud14c\uc2a4\ud2b8 \uc11c\ube44\uc2a4 \uc8fc\uc18c -lvis.host.test=http://10.98.198.199:9700/lvis/services/WsFrontController - -#\uc790\ub3d9\ucc28 \uae30\ubcf8\uc0ac\ud56d \uc870\ud68c \ub85c\uadf8 \uc800\uc7a5 \uc5ec\ubd80(true || false) -lvis.log.basicInfo=true \ No newline at end of file diff --git a/src/main/resources/spring/context-beans.xml b/src/main/resources/spring/context-beans.xml deleted file mode 100644 index edc862b..0000000 --- a/src/main/resources/spring/context-beans.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - \ No newline at end of file diff --git a/src/main/resources/spring/context-common.xml b/src/main/resources/spring/context-common.xml deleted file mode 100644 index 11e55da..0000000 --- a/src/main/resources/spring/context-common.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - - - - - - - - classpath:message/message-common - classpath:message/authentication-message - classpath:org/egovframe/rte/fdl/property/messages/properties - - - - - 60 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/resources/spring/context-datasource.xml b/src/main/resources/spring/context-datasource.xml deleted file mode 100644 index 1bfebb6..0000000 --- a/src/main/resources/spring/context-datasource.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/resources/spring/dispatcher-servlet.xml b/src/main/resources/spring/dispatcher-servlet.xml deleted file mode 100644 index 73ce700..0000000 --- a/src/main/resources/spring/dispatcher-servlet.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file