commit 18dff0f041e9e4238e8c3c1e1b680b6bc4f2b4ca Author: mjkhan21 Date: Tue May 9 11:32:29 2023 +0900 최초 커밋 diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..e33a805 --- /dev/null +++ b/pom.xml @@ -0,0 +1,36 @@ + + 4.0.0 + cokr.xit.interfaces + xit-lvis-rest + war + 0.0.1-SNAPSHOT + lvis-rest Maven Webapp + http://maven.apache.org + + UTF-8 + + 1.8 + ${java.version} + ${java.version} + + + + + cokr.xit.interfaces + xit-lvis + 0.0.1-SNAPSHOT + + + + xit-lvis-rest + + + org.apache.maven.plugins + maven-war-plugin + 3.3.2 + + + + + \ No newline at end of file diff --git a/src/main/resources/commons-logging.properties b/src/main/resources/commons-logging.properties new file mode 100644 index 0000000..529f5b4 --- /dev/null +++ b/src/main/resources/commons-logging.properties @@ -0,0 +1,2 @@ +org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger +org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl \ No newline at end of file diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml new file mode 100644 index 0000000..e2e2826 --- /dev/null +++ b/src/main/resources/log4j2.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/log4jdbc.log4j2.properties b/src/main/resources/log4jdbc.log4j2.properties new file mode 100644 index 0000000..3b8ff2b --- /dev/null +++ b/src/main/resources/log4jdbc.log4j2.properties @@ -0,0 +1,4 @@ +log4jdbc.spylogdelegator.name=net.sf.log4jdbc.log.slf4j.Slf4jSpyLogDelegator + +log4jdbc.dump.sql.maxlinelength=0 +log4jdbc.drivers=org.mariadb.jdbc.Driver diff --git a/src/main/resources/lombok.config b/src/main/resources/lombok.config new file mode 100644 index 0000000..23be078 --- /dev/null +++ b/src/main/resources/lombok.config @@ -0,0 +1,2 @@ +# see https://projectlombok.org/features/constructor lombok.copyableAnnotations +lombok.copyableAnnotations += org.springframework.beans.factory.annotation.Qualifier diff --git a/src/main/resources/properties/xit-lvis.properties b/src/main/resources/properties/xit-lvis.properties new file mode 100644 index 0000000..c065ffc --- /dev/null +++ b/src/main/resources/properties/xit-lvis.properties @@ -0,0 +1,34 @@ +#\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) +lvis.host.active=test +#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 new file mode 100644 index 0000000..edc862b --- /dev/null +++ b/src/main/resources/spring/context-beans.xml @@ -0,0 +1,8 @@ + + + \ No newline at end of file diff --git a/src/main/resources/spring/context-common.xml b/src/main/resources/spring/context-common.xml new file mode 100644 index 0000000..11e55da --- /dev/null +++ b/src/main/resources/spring/context-common.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000..1bfebb6 --- /dev/null +++ b/src/main/resources/spring/context-datasource.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/spring/dispatcher-servlet.xml b/src/main/resources/spring/dispatcher-servlet.xml new file mode 100644 index 0000000..73ce700 --- /dev/null +++ b/src/main/resources/spring/dispatcher-servlet.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/base/test.xml b/src/main/resources/sql/mapper/base/test.xml new file mode 100644 index 0000000..2774ae9 --- /dev/null +++ b/src/main/resources/sql/mapper/base/test.xml @@ -0,0 +1,14 @@ + + + + +${sql} + +${sql} + +${sql} + +COMMIT + + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/base/utility.xml b/src/main/resources/sql/mapper/base/utility.xml new file mode 100644 index 0000000..6e39d6d --- /dev/null +++ b/src/main/resources/sql/mapper/base/utility.xml @@ -0,0 +1,27 @@ + + + + + + +SELECT QROWS.* FROM ( + SELECT ROW_NUMBER() OVER() ROW_NUM + , COUNT(*) OVER() TOT_CNT, QBODY.* + FROM ( + + ) QBODY + ) QROWS +WHERE ROW_NUM BETWEEN ((#{pageNum} - 1) * #{fetchSize}) + 1 AND (#{pageNum} * #{fetchSize}) + + + +ORDER BY ${orderBy} + + + +IFNULL(#{thisDay}, TO_CHAR(CURRENT_DATE, 'YYYYMMDD')) + +SELECTTHIS_DAY + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/lvis/vehicleInfo-mapper.xml b/src/main/resources/sql/mapper/lvis/vehicleInfo-mapper.xml new file mode 100644 index 0000000..4792cce --- /dev/null +++ b/src/main/resources/sql/mapper/lvis/vehicleInfo-mapper.xml @@ -0,0 +1,186 @@ + + + + +/* vehicleInfoMapper.insertBasicInfo(자동차 기본사항 조회 로그 등록) */ +INSERT INTO TBL_BASIC_INFO_LOG ( + LOG_ID + , PRYE + , REGIST_DE + , ERSR_REGIST_SE_CODE + , ERSR_REGIST_SE_NM + , ERSR_REGIST_DE + , REGIST_DETAIL_CODE + , DSPLVL + , USE_STRNGHLD_LEGALDONG_CODE + , USE_STRNGHLD_ADSTRD_CODE + , USE_STRNGHLD_MNTN + , USE_STRNGHLD_LNBR + , USE_STRNGHLD_HO + , USE_STRNGHLD_ADRES_NM + , USE_STRNGHLD_ROAD_NM_CODE + , USGSRHLD_UNDGRND_BULD_SE_CODE + , USE_STRNGHLD_BULD_MAIN_NO + , USE_STRNGHLD_BULD_SUB_NO + , MBER_SE_CODE + , MBER_NM + , MBER_SE_NO + , TELNO + , OWNER_LEGALDONG_CODE + , OWNER_ADSTRD_CODE + , OWNER_MNTN + , OWNER_LNBR + , OWNER_HO + , OWNER_ADRES_NM + , OWNER_ROAD_NM_CODE + , OWNER_UNDGRND_BULD_SE_CODE + , OWNER_BULD_MAIN_NO + , OWNER_BULD_SUB_NO + , OWNER_ADRES_FULL + , AFTR_VHRNO + , USE_FUEL_CODE + , PRPOS_SE_CODE + , MTRS_FOM_NM + , FRNT_VHRNO + , VHRNO + , VIN + , CNM + , VHCLE_TOT_WT + , CAAG_ENDDE + , CHANGE_DE + , VHCTY_ASORT_CODE + , VHCTY_TY_CODE + , VHCTY_SE_CODE + , MXMM_LDG + , VHCTY_ASORT_NM + , VHCTY_TY_NM + , VHCTY_SE_NM + , FRST_REGIST_DE + , FOM_NM + , ACQS_DE + , ACQS_END_DE + , YBL_MD + , TRANSR_REGIST_DE + , SPCF_REGIST_STTUS_CODE + , COLOR_NM + , MRTG_CO + , SEIZR_CO + , STMD_CO + , NMPL_CSDY_AT + , NMPL_CSDY_REMNR_DE + , ORIGIN_SE_CODE + , NMPL_STNDRD_CODE + , ACQS_AMOUNT + , INSPT_VALID_PD_BGNDE + , INSPT_VALID_PD_ENDDE + , CHCK_VALID_PD_BGNDE + , CHCK_VALID_PD_ENDDE + , USE_STRNGHLD_GRC_CODE + , TKCAR_PSCAP_CO + , SPMNNO + , TRVL_DSTNC + , FRST_REGIST_RQRCNO + , VLNT_ERSR_PRVNTC_NTICE_DE + , REGIST_INSTT_NM + , PROCESS_IMPRTY_RESN_CODE + , PROCESS_IMPRTY_RESN_DTLS + , VIMS_PRPOS_SE_CODE + , VIMS_VHCTY_ASORT_CODE + , VIMS_VHCTY_TY_CODE + , VIMS_VHCTY_SE_CODE + , CBD_LT + , CBD_BT + , CBD_HG + , FRST_MXMM_LDG +) VALUES ( + TO_CHAR(CURRENT_TIMESTAMP(), 'YYMMDD-HH24MISS') + , #{prye} + , #{regist_de} + , #{ersr_regist_se_code} + , #{ersr_regist_se_nm} + , #{ersr_regist_de} + , #{regist_detail_code} + , #{dsplvl} + , #{use_strnghld_legaldong_code} + , #{use_strnghld_adstrd_code} + , #{use_strnghld_mntn} + , #{use_strnghld_lnbr} + , #{use_strnghld_ho} + , #{use_strnghld_adres_nm} + , #{use_strnghld_road_nm_code} + , #{usgsrhld_undgrnd_buld_se_code} + , #{use_strnghld_buld_main_no} + , #{use_strnghld_buld_sub_no} + , #{mber_se_code} + , #{mber_nm} + , #{mber_se_no} + , #{telno} + , #{owner_legaldong_code} + , #{owner_adstrd_code} + , #{owner_mntn} + , #{owner_lnbr} + , #{owner_ho} + , #{owner_adres_nm} + , #{owner_road_nm_code} + , #{owner_undgrnd_buld_se_code} + , #{owner_buld_main_no} + , #{owner_buld_sub_no} + , #{owner_adres_full} + , #{aftr_vhrno} + , #{use_fuel_code} + , #{prpos_se_code} + , #{mtrs_fom_nm} + , #{frnt_vhrno} + , #{vhrno} + , #{vin} + , #{cnm} + , #{vhcle_tot_wt} + , #{caag_endde} + , #{change_de} + , #{vhcty_asort_code} + , #{vhcty_ty_code} + , #{vhcty_se_code} + , #{mxmm_ldg} + , #{vhcty_asort_nm} + , #{vhcty_ty_nm} + , #{vhcty_se_nm} + , #{frst_regist_de} + , #{fom_nm} + , #{acqs_de} + , #{acqs_end_de} + , #{ybl_md} + , #{transr_regist_de} + , #{spcf_regist_sttus_code} + , #{color_nm} + , #{mrtg_co} + , #{seizr_co} + , #{stmd_co} + , #{nmpl_csdy_at} + , #{nmpl_csdy_remnr_de} + , #{origin_se_code} + , #{nmpl_stndrd_code} + , #{acqs_amount} + , #{inspt_valid_pd_bgnde} + , #{inspt_valid_pd_endde} + , #{chck_valid_pd_bgnde} + , #{chck_valid_pd_endde} + , #{use_strnghld_grc_code} + , #{tkcar_pscap_co} + , #{spmnno} + , #{trvl_dstnc} + , #{frst_regist_rqrcno} + , #{vlnt_ersr_prvntc_ntice_de} + , #{regist_instt_nm} + , #{process_imprty_resn_code} + , #{process_imprty_resn_dtls} + , #{vims_prpos_se_code} + , #{vims_vhcty_asort_code} + , #{vims_vhcty_ty_code} + , #{vims_vhcty_se_code} + , #{cbd_lt} + , #{cbd_bt} + , #{cbd_hg} + , #{frst_mxmm_ldg} +) + + \ No newline at end of file diff --git a/src/main/resources/sql/mybatis-config.xml b/src/main/resources/sql/mybatis-config.xml new file mode 100644 index 0000000..ab0047a --- /dev/null +++ b/src/main/resources/sql/mybatis-config.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..c8c5091 --- /dev/null +++ b/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,84 @@ + + + + XIT LVIS REST + + encodingFilter + org.springframework.web.filter.CharacterEncodingFilter + + encoding + utf-8 + + + + encodingFilter + *.do + + + + + + contextConfigLocation + classpath*:spring/context-*.xml + + + + org.springframework.web.context.ContextLoaderListener + + + + dispatcherServlet + org.springframework.web.servlet.DispatcherServlet + + contextConfigLocation + classpath*:spring/dispatcher-servlet.xml + + 1 + + + + dispatcherServlet + *.do + + + + /index.do + + + + BASIC + + + + 60 + COOKIE + + true + false + + + + + 404 + /error/pageNotFound.do + + + /error/500.jsp + + \ No newline at end of file diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp new file mode 100644 index 0000000..6f07b72 --- /dev/null +++ b/src/main/webapp/index.jsp @@ -0,0 +1,5 @@ + + +

Hello World!

+ + diff --git a/src/test/resources/http/lvis-rest.http b/src/test/resources/http/lvis-rest.http new file mode 100644 index 0000000..de0f4be --- /dev/null +++ b/src/test/resources/http/lvis-rest.http @@ -0,0 +1,10 @@ +### 자동차 기본정보 조회 + +GET http://localhost:8080/lvis-rest/api/lvis/basicInfo.do HTTP/1.1 +Content-Type: application/json; charset=UTF-8 + +{ + "vhrno": "57두0626", + "levy_stdde": "20230405" +} +