diff --git a/.gitignore b/.gitignore index f84a01e..9890a97 100644 --- a/.gitignore +++ b/.gitignore @@ -60,6 +60,8 @@ local.properties # Typically, this file would be tracked if it contains build/dependency configurations: .project +.classpath + /.idea/ /lib/ /target/ diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..e3ad201 --- /dev/null +++ b/pom.xml @@ -0,0 +1,328 @@ + + + 4.0.0 + kr.go.icits.tpss + SISUL_API + 1.0-SNAPSHOT + war + + + 1.8 + 5.3.6 + 4.0.0 + 1.6.10 + 1.6.6 + 3.0.5 + 8 + 8 + + + + + mvn2s + https://repo1.maven.org/maven2/ + + true + + + true + + + + egovframe + https://maven.egovframe.go.kr/maven/ + + true + + + + + false + + + + + + + org.springframework + spring-context + 5.3.6 + + + + commons-logging + commons-logging + + + + + + com.googlecode.json-simple + json-simple + 1.1 + + + + org.springframework + spring-webmvc + 5.3.6 + + + + + org.springframework.security + spring-security-web + 5.0.6.RELEASE + + + org.springframework.security + spring-security-config + 5.0.6.RELEASE + + + org.springframework.security + spring-security-core + 5.0.6.RELEASE + + + org.springframework.security + spring-security-taglibs + 5.0.6.RELEASE + + + + org.springframework.security + spring-security-jwt + 1.0.9.RELEASE + + + + org.springframework.security + spring-security-crypto + 4.2.4.RELEASE + + + + org.springframework + spring-tx + 5.3.6 + + + org.springframework + spring-jdbc + 5.3.6 + + + + org.springframework + spring-test + 5.3.6 + + + + + log4j + log4j + 1.2.17 + + + + org.slf4j + slf4j-api + 1.6.6 + + + org.slf4j + jcl-over-slf4j + 1.6.6 + runtime + + + org.slf4j + slf4j-log4j12 + 1.6.6 + runtime + + + + org.apache.logging.log4j + log4j-core + 2.17.1 + + + org.apache.logging.log4j + log4j-slf4j-impl + 2.17.1 + + + + + junit + junit + 4.12 + + + + + org.mybatis + mybatis + 3.4.6 + + + + + org.mybatis + mybatis-spring + 1.3.2 + + + + + + javax.servlet + javax.servlet-api + 3.1.0 + provided + + + javax.servlet.jsp + jsp-api + 2.1 + provided + + + javax.servlet + jstl + 1.2 + + + + org.apache.tiles + tiles-servlet + 3.0.5 + + + + org.apache.tiles + tiles-api + 3.0.5 + + + + org.apache.tiles + tiles-jsp + 3.0.5 + + + + org.apache.tiles + tiles-core + 3.0.5 + + + + org.apache.tiles + tiles-template + 3.0.5 + + + org.apache.poi + poi-ooxml + 4.0.0 + + + + org.apache.commons + commons-dbcp2 + 2.4.0 + + + + + com.github.pagehelper + pagehelper + 5.2.0 + + + + + + + mysql + mysql-connector-java + 8.0.28 + + + + + egovframework.rte + egovframework.rte.psl.dataaccess + 2.7.0 + + + + + org.projectlombok + lombok + 1.18.22 + provided + + + + + com.fasterxml.jackson.core + jackson-databind + 2.13.2 + + + + + + org.bgee.log4jdbc-log4j2 + log4jdbc-log4j2-jdbc4.1 + 1.16 + + + + + + com.googlecode.json-simple + json-simple + 1.1.1 + + + + + + org.apache.httpcomponents + httpclient + 4.5.13 + + + + + + com.tmax.tibero + tibero-jdbc + 6.0 + system + ${basedir}/src/main/webapp/WEB-INF/lib/tibero6-jdbc.jar + + + + + + + + org.apache.maven.plugins + maven-war-plugin + + + + + + diff --git a/src/main/java/kr/api/controller/ApiMainController.java b/src/main/java/kr/api/controller/ApiMainController.java new file mode 100644 index 0000000..beeb42e --- /dev/null +++ b/src/main/java/kr/api/controller/ApiMainController.java @@ -0,0 +1,43 @@ +package kr.api.controller; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +import kr.api.service.ApiMainService; + + +@RestController +@RequestMapping("/api") +public class ApiMainController { + + @Resource(name = "apiMainService") + private ApiMainService apiMainService; + + @RequestMapping(value = "/sisulDefaultList", produces = "application/json; charset=utf8", method=RequestMethod.POST) + public List> sisulDefaultList(@RequestBody Map data) { + return apiMainService.sisulDefaultList(data); + } + + @RequestMapping(value = "/sisulPenaltyList", produces = "application/json; charset=utf8", method=RequestMethod.POST) + public List> sisulPenaltyList(@RequestBody Map data) { + return apiMainService.sisulPenaltyList(data); + } + + @RequestMapping(value = "/selectSisulDefaultResiList", produces = "application/json; charset=utf8", method=RequestMethod.POST) + public List> selectSisulDefaultResiList(@RequestBody Map data) { + return apiMainService.selectSisulDefaultResiList(data); + } + + @RequestMapping(value = "/selectSisulOverList", produces = "application/json; charset=utf8", method=RequestMethod.POST) + public List> selectSisulOverList(@RequestBody Map data) { + return apiMainService.selectSisulOverList(data); + } + +} diff --git a/src/main/java/kr/api/main/controller/MainController.java b/src/main/java/kr/api/main/controller/MainController.java new file mode 100644 index 0000000..9ce4a65 --- /dev/null +++ b/src/main/java/kr/api/main/controller/MainController.java @@ -0,0 +1,16 @@ +package kr.api.main.controller; + + +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.RequestMapping; + +@Controller +//@RequestMapping("/") +public class MainController { + @RequestMapping(value = "/", produces = "application/json; charset=utf8") + public String mainScreen(ModelMap model) { + return "index"; + } + +} diff --git a/src/main/java/kr/api/service/ApiMainService.java b/src/main/java/kr/api/service/ApiMainService.java new file mode 100644 index 0000000..4330392 --- /dev/null +++ b/src/main/java/kr/api/service/ApiMainService.java @@ -0,0 +1,17 @@ +package kr.api.service; + +import java.util.List; +import java.util.Map; + +public interface ApiMainService { + + List> sisulDefaultList(Map data); + + List> sisulPenaltyList(Map data); + + List> selectSisulDefaultResiList(Map data); + + List> selectSisulOverList(Map data); + + +} diff --git a/src/main/java/kr/api/service/ApiMainServiceImpl.java b/src/main/java/kr/api/service/ApiMainServiceImpl.java new file mode 100644 index 0000000..6756cb0 --- /dev/null +++ b/src/main/java/kr/api/service/ApiMainServiceImpl.java @@ -0,0 +1,357 @@ +package kr.api.service; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStreamReader; +import java.io.OutputStreamWriter; +import java.io.Reader; +import java.net.HttpURLConnection; +import java.net.URL; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Properties; + +import org.json.simple.JSONArray; +import org.json.simple.JSONObject; +import org.json.simple.parser.JSONParser; +import org.json.simple.parser.ParseException; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.ObjectUtils; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.ibatis.common.resources.Resources; + + + +@Service("apiMainService") +@Transactional +public class ApiMainServiceImpl implements ApiMainService { + + @SuppressWarnings("unchecked") + @Override + public List> sisulDefaultList(Map data) { + List> result = new ArrayList>(); + + try { + String resource = "../api.properties"; + Properties properties = new Properties(); + Reader reader = Resources.getResourceAsReader(resource); + properties.load(reader); + System.out.println(properties.getProperty("URL")); + URL obj = null; + obj = new URL(properties.getProperty("URL")); // API URL + + HttpURLConnection con = (HttpURLConnection)obj.openConnection(); + con.setRequestMethod("POST"); // GET, POST + con.setRequestProperty("Content-type", "application/json; charset=UTF-8"); + con.setDoOutput(true); + + + // DATA + JSONObject param = new JSONObject(); + + param.put("stDate", data.get("stDate")); + param.put("edDate", data.get("edDate")); +// param.put("residentNo", data.get("residentNo")); + param.put("carNo", data.get("carNo")); + + OutputStreamWriter wr= new OutputStreamWriter(con.getOutputStream()); + wr.write(param.toString()); + wr.flush(); + // API 호출 + BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream(), "UTF-8")); + String line; + StringBuffer sb = new StringBuffer(); + while((line = in.readLine()) != null){ + sb.append(line); + } + +// System.out.println(sb.toString()); + + JSONParser parser = new JSONParser(); + JSONArray jsonResult = (JSONArray)parser.parse(sb.toString()); + + Map resCode = new HashMap<>(); + resCode.put("resCode", con.getResponseCode()); + result.add(resCode); + if(jsonResult.size() != 0) { + result = getListMapFromJsonArray(jsonResult); + } + + + + in.close(); + con.disconnect(); + +// String text = sb.toString(); +// ObjectMapper mapper = new ObjectMapper(); +// +// Map map = mapper.readValue(text, Map.class); + + } catch (JsonMappingException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (JsonProcessingException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (ParseException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } +// return map; + return result; + } + + public List> sisulPenaltyList(Map data) { + List> result = new ArrayList>(); + + try { + String resource = "../api.properties"; + Properties properties = new Properties(); + Reader reader = Resources.getResourceAsReader(resource); + properties.load(reader); +// System.out.println(properties.getProperty("URL")); + URL obj = null; + obj = new URL(properties.getProperty("PENALTY")); // API URL + + HttpURLConnection con = (HttpURLConnection)obj.openConnection(); + con.setRequestMethod("POST"); // GET, POST + con.setRequestProperty("Content-type", "application/json; charset=UTF-8"); + con.setDoOutput(true); + + + // DATA + JSONObject param = new JSONObject(); + + param.put("workerId", data.get("workerId")); + param.put("fareOfficeId", data.get("fareOfficeId")); + param.put("boothId", data.get("boothId")); + param.put("passDate", data.get("passDate")); + param.put("workTimes", data.get("workTimes")); + param.put("seqno", data.get("seqno")); + + OutputStreamWriter wr= new OutputStreamWriter(con.getOutputStream()); + wr.write(param.toString()); + wr.flush(); + // API 호출 + BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream(), "UTF-8")); + String line; + StringBuffer sb = new StringBuffer(); + while((line = in.readLine()) != null){ + sb.append(line); + } + + JSONParser parser = new JSONParser(); + JSONArray jsonResult = (JSONArray)parser.parse(sb.toString()); + + Map resCode = new HashMap<>(); + resCode.put("resCode", con.getResponseCode()); + result.add(resCode); + if(jsonResult.size() != 0) { + result = getListMapFromJsonArray(jsonResult); + } + + + + in.close(); + con.disconnect(); + + } catch (JsonMappingException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (JsonProcessingException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (ParseException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } +// return map; + return result; + } + + public List> selectSisulDefaultResiList(Map data) { + List> result = new ArrayList>(); + + try { + String resource = "../api.properties"; + Properties properties = new Properties(); + Reader reader = Resources.getResourceAsReader(resource); + properties.load(reader); +// System.out.println(properties.getProperty("URL")); + URL obj = null; + obj = new URL(properties.getProperty("DEFAULT")); // API URL + + HttpURLConnection con = (HttpURLConnection)obj.openConnection(); + con.setRequestMethod("POST"); // GET, POST + con.setRequestProperty("Content-type", "application/json; charset=UTF-8"); + con.setDoOutput(true); + + + // DATA + JSONObject param = new JSONObject(); + + param.put("carNo", data.get("carNo")); + param.put("residentNo", data.get("residentNo")); + + OutputStreamWriter wr= new OutputStreamWriter(con.getOutputStream()); + wr.write(param.toString()); + wr.flush(); + // API 호출 + BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream(), "UTF-8")); + String line; + StringBuffer sb = new StringBuffer(); + while((line = in.readLine()) != null){ + sb.append(line); + } + + JSONParser parser = new JSONParser(); + JSONArray jsonResult = (JSONArray)parser.parse(sb.toString()); + + Map resCode = new HashMap<>(); + resCode.put("resCode", con.getResponseCode()); + result.add(resCode); + + System.out.println("jsonResult"+ jsonResult.toJSONString()); + if(jsonResult.size() != 0) { + result = getListMapFromJsonArray(jsonResult); + } + + + + in.close(); + con.disconnect(); + + } catch (JsonMappingException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (JsonProcessingException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (ParseException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } +// return map; + return result; + } + + public List> selectSisulOverList(Map data) { + List> result = new ArrayList>(); + + try { + String resource = "../api.properties"; + Properties properties = new Properties(); + Reader reader = Resources.getResourceAsReader(resource); + properties.load(reader); +// System.out.println(properties.getProperty("URL")); + URL obj = null; + obj = new URL(properties.getProperty("OVER")); // API URL + + HttpURLConnection con = (HttpURLConnection)obj.openConnection(); + con.setRequestMethod("POST"); // GET, POST + con.setRequestProperty("Content-type", "application/json; charset=UTF-8"); + con.setDoOutput(true); + + + // DATA + JSONObject param = new JSONObject(); + + param.put("carNo", data.get("carNo")); + + OutputStreamWriter wr= new OutputStreamWriter(con.getOutputStream()); + wr.write(param.toString()); + wr.flush(); + // API 호출 + BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream(), "UTF-8")); + String line; + StringBuffer sb = new StringBuffer(); + while((line = in.readLine()) != null){ + sb.append(line); + } + + JSONParser parser = new JSONParser(); + JSONArray jsonResult = (JSONArray)parser.parse(sb.toString()); + + Map resCode = new HashMap<>(); + resCode.put("resCode", con.getResponseCode()); + result.add(resCode); + + System.out.println("jsonResult"+ jsonResult.toJSONString()); + if(jsonResult.size() != 0) { + result = getListMapFromJsonArray(jsonResult); + } + + + + in.close(); + con.disconnect(); + + } catch (JsonMappingException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (JsonProcessingException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (ParseException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } +// return map; + return result; + } + + /** + * jsonObject --> map 으로 변경 + * JSONObject 에 JSONArray 없어야 햠. + * @param obj + * @return + */ + public static Map getMapFromJSONObject(JSONObject obj) { + if (ObjectUtils.isEmpty(obj)) { + throw new IllegalArgumentException(String.format("BAD REQUEST obj %s", obj)); + } + + try { + return new ObjectMapper().readValue(obj.toJSONString(), Map.class); + } catch (Exception e) { + throw new RuntimeException(e); + } + } + + /** + * json array 를 list map 으로 변경. + * + * @param jsonArray + * @return 값이 있으면 list map, 없으면 list 빈 값 return + */ + public static List> getListMapFromJsonArray(JSONArray jsonArray) { + if (ObjectUtils.isEmpty(jsonArray)) { + throw new IllegalArgumentException("jsonArray is null"); + } + List> list = new ArrayList<>(); + for (Object jsonObject : jsonArray) { + list.add(getMapFromJSONObject((JSONObject) jsonObject)); + } + return list; + } + + +} diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml new file mode 100644 index 0000000..c1e0774 --- /dev/null +++ b/src/main/resources/log4j2.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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..6d789c0 --- /dev/null +++ b/src/main/resources/log4jdbc.log4j2.properties @@ -0,0 +1,2 @@ +log4jdbc.spylogdelegator.name=net.sf.log4jdbc.log.slf4j.Slf4jSpyLogDelegator + diff --git a/src/main/resources/mybatis/mybatis-config-dev.xml b/src/main/resources/mybatis/mybatis-config-dev.xml new file mode 100644 index 0000000..c0798a1 --- /dev/null +++ b/src/main/resources/mybatis/mybatis-config-dev.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/mybatis/mybatis-config-prod.xml b/src/main/resources/mybatis/mybatis-config-prod.xml new file mode 100644 index 0000000..4e16cc0 --- /dev/null +++ b/src/main/resources/mybatis/mybatis-config-prod.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/properties/config-dev.properties b/src/main/resources/properties/config-dev.properties new file mode 100644 index 0000000..c9a222c --- /dev/null +++ b/src/main/resources/properties/config-dev.properties @@ -0,0 +1,73 @@ +#tibero +#jdbc.driverClassName=net.sf.log4jdbc.sql.jdbcapi.DriverSpy +#jdbc.url=jdbc:log4jdbc:tibero:thin:@175.198.238.72:18629:tpssdev +#jdbc.username=tpss +#jdbc.password=V6$Q2iYw + +##tibero7(Dev) +#jdbc.driverClassName=net.sf.log4jdbc.sql.jdbcapi.DriverSpy +#jdbc.url=jdbc:log4jdbc:tibero:thin:@220.126.183.238:48629:tpssdev +#jdbc.username=tpss +#jdbc.password=V6$Q2iYw + +#tibero7(Test) +jdbc.driverClassName=net.sf.log4jdbc.sql.jdbcapi.DriverSpy +jdbc.url=jdbc:log4jdbc:tibero:thin:@192.168.1.122:48629:tpssdev +jdbc.username=tpss +jdbc.password=V6$Q2iYw + +#tibero7(Test) +jdbc.driverClassName=net.sf.log4jdbc.sql.jdbcapi.DriverSpy +jdbc.url=jdbc:log4jdbc:tibero:thin:@192.168.1.122:48629:tpssdev +jdbc.username=tpss +jdbc.password=V6$Q2iYw + + + +# map +map.url=https://icloud.incheon.go.kr/Basemap/Normal_kor/{z}/{x}/{y}.png + +# api key +api.key.safemap=AYCAA6GR-AYCA-AYCA-AYCA-AYCAA6GRSX +api.key.taas.jaywalking=HKJy2dFc4yN5x5UDL8SR0u0Frs5CnzvwXo8yvWCAfOOH%2Fwhirlvr8v%2F4m5ZNUq3b +api.key.taas.oldman=qvAwshGrHUmHIXVs8v1lUYnmt15EZevFx8VpAbiJ%2FmQR3dQMK2FKCglHT5rkc3Yf +api.key.taas.child=v8%2FRSQh094uyoTJMSxb6u%2FM4UHyz20iNuw2idqegU3DH4lH8fGc%2FOSKJViW3D0oL +api.key.taas.schoolzone.child=qZFs05HLyZ8fEzSWglUXTZ8pfgc4MZ%2Fi6MfjX7i1gK92AlE9hwVkjNt4nir5UTWt +api.key.taas.bicycle=RDg2SyI9ji2ED11Dl9yjzrXFad8%2Fm3vW8Cwbh1LzRhMa3RmyPn7l36dMxGfft7pt + +# TAAS Open APi +taas.sido.code=28 +taas.gugun.code=710,245,170,200,140,177,237,260,185,720,110 + +# GEOSERVER(Dev) +geoserver.url=http://220.126.183.238:18443 + + +#LOGIN_Chk +login.chk=dev + +#tibero +#jdbc.default.driverClassName=net.sf.log4jdbc.sql.jdbcapi.DriverSpy +#jdbc.default.url=jdbc:log4jdbc:tibero:thin:@192.168.6.12:8629:ictrat +#jdbc.default.username=tpss +#jdbc.default.password=itstpss + +#tibero +#jdbc.default.driverClassName=com.tmax.tibero.jdbc.TbDriver +#jdbc.default.url=jdbc:tibero:thin:@175.198.238.72:18629:tpssdev +#jdbc.default.username=tpss +#jdbc.default.password=V6$Q2iYw + +#mysql +#jdbc.default.driverClassName=com.mysql.jdbc.Driver +#jdbc.default.url=jdbc:mysql://106.240.250.138:3306/locgov?characterEncoding=UTF-8 +#jdbc.default.username=uinet +#jdbc.default.password=uinetworks201% + + +#tibero -local +#jdbc.default.driverClassName=com.tmax.tibero.jdbc.TbDriver +#jdbc.default.url=jdbc:tibero:thin:@127.0.0.1:8629:tibero +#jdbc.default.username=sys +#jdbc.default.password=admin1234 + diff --git a/src/main/resources/properties/config-prod.properties b/src/main/resources/properties/config-prod.properties new file mode 100644 index 0000000..2da3dce --- /dev/null +++ b/src/main/resources/properties/config-prod.properties @@ -0,0 +1,47 @@ +#tibero +#jdbc.driverClassName=net.sf.log4jdbc.sql.jdbcapi.DriverSpy +#jdbc.url=jdbc:log4jdbc:tibero:thin:@175.198.238.72:18629:tpssdev +#jdbc.username=tpss +#jdbc.password=V6$Q2iYw + +#tibero7(Dev) +#jdbc.driverClassName=net.sf.log4jdbc.sql.jdbcapi.DriverSpy +#jdbc.url=jdbc:log4jdbc:tibero:thin:@175.198.238.72:38629:tpssdev +#jdbc.username=tpss +#jdbc.password=V6$Q2iYw + +#tibero7(Prod) +jdbc.driverClassName=net.sf.log4jdbc.sql.jdbcapi.DriverSpy +jdbc.url=jdbc:log4jdbc:tibero:thin:@192.168.6.54:8629:biganlydb +jdbc.username=TPSS +jdbc.password=V6$Q2iYw + +# map +map.url=https://icloud.incheon.go.kr/Basemap/Normal_kor/{z}/{x}/{y}.png +#map.url=https://tile.openstreetmap.org/{z}/{x}/{y}.png +#map.url=https://imap.incheon.go.kr/Basemap/Normal_kor/map_tiles/v_fix/{z}/{x}/{y}.png + +# map(Prod) +#map.url=http://101.0.1.99:8093/Basemap/Normal_kor/map_tiles/v_fix/{level}/{col}/{row}.png + +# api key +api.key.safemap=AYCAA6GR-AYCA-AYCA-AYCA-AYCAA6GRSX +api.key.taas.jaywalking=HKJy2dFc4yN5x5UDL8SR0u0Frs5CnzvwXo8yvWCAfOOH%2Fwhirlvr8v%2F4m5ZNUq3b +api.key.taas.oldman=qvAwshGrHUmHIXVs8v1lUYnmt15EZevFx8VpAbiJ%2FmQR3dQMK2FKCglHT5rkc3Yf +api.key.taas.child=v8%2FRSQh094uyoTJMSxb6u%2FM4UHyz20iNuw2idqegU3DH4lH8fGc%2FOSKJViW3D0oL +api.key.taas.schoolzone.child=qZFs05HLyZ8fEzSWglUXTZ8pfgc4MZ%2Fi6MfjX7i1gK92AlE9hwVkjNt4nir5UTWt +api.key.taas.bicycle=RDg2SyI9ji2ED11Dl9yjzrXFad8%2Fm3vW8Cwbh1LzRhMa3RmyPn7l36dMxGfft7pt + +# TAAS Open APi +taas.sido.code=28 +taas.gugun.code=710,245,170,200,140,177,237,260,185,720,110 + +# GEOSERVER(Prod) +#geoserver.url=http://192.168.6.104:81 +#geoserver.url=http://192.168.21.66:8443 +geoserver.url=http://192.168.6.51:8443 +geoserver.in.url=http://10.161.129.35:8443 + +#LOGIN_Chk +login.chk=prod + diff --git a/src/main/resources/spring/context-dev.xml b/src/main/resources/spring/context-dev.xml new file mode 100644 index 0000000..a45ccff --- /dev/null +++ b/src/main/resources/spring/context-dev.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/spring/context-prod.xml b/src/main/resources/spring/context-prod.xml new file mode 100644 index 0000000..c805bee --- /dev/null +++ b/src/main/resources/spring/context-prod.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/spring/dispatcher-servlet.xml b/src/main/resources/spring/dispatcher-servlet.xml new file mode 100644 index 0000000..e83231c --- /dev/null +++ b/src/main/resources/spring/dispatcher-servlet.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/main/webapp/META-INF/MANIFEST.MF b/src/main/webapp/META-INF/MANIFEST.MF new file mode 100644 index 0000000..254272e --- /dev/null +++ b/src/main/webapp/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Class-Path: + diff --git a/src/main/webapp/WEB-INF/api.properties b/src/main/webapp/WEB-INF/api.properties new file mode 100644 index 0000000..1431a58 --- /dev/null +++ b/src/main/webapp/WEB-INF/api.properties @@ -0,0 +1,16 @@ +#연계 서비스 URL +#미납 기간 조회 api +URL=http://175.193.201:92/rest/cfs/sisulDefaultNotification.do + +#과태료 조회 api +PENALTY=http://175.193.201:92/rest/cfs/sisulPenaltyNotification.do + +#미납 전체 조회 api +#DEFAULT=http://175.193.201:92/rest/cfs/selectSisulDefaultResiList.do +DEFAULT=http://localhost:8080/rest/cfs/selectSisulDefaultResiList.do +#URL=http://98.43.129.52:8080/rest/cfs/sisulDefaultNotification.do +#URL=http://175.193.201:92/rest/cfs/sisulDefaultNotification.do + +#과오납 조회 api +#OVER=http://175.193.201:92/rest/cfs/selectSisulOverFareList.do +OVER=http://localhost:8080/rest/cfs/selectSisulOverFareList.do \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/lib/dsagent-v36.jar b/src/main/webapp/WEB-INF/lib/dsagent-v36.jar new file mode 100644 index 0000000..1b9a98d Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/dsagent-v36.jar differ diff --git a/src/main/webapp/WEB-INF/lib/jcaos-1.4.7.5.jar b/src/main/webapp/WEB-INF/lib/jcaos-1.4.7.5.jar new file mode 100644 index 0000000..8c0e229 Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/jcaos-1.4.7.5.jar differ diff --git a/src/main/webapp/WEB-INF/lib/tibero6-jdbc.jar b/src/main/webapp/WEB-INF/lib/tibero6-jdbc.jar new file mode 100644 index 0000000..73f9f5d Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/tibero6-jdbc.jar differ diff --git a/src/main/webapp/WEB-INF/views/jsp/index.jsp b/src/main/webapp/WEB-INF/views/jsp/index.jsp new file mode 100644 index 0000000..3d99b5c --- /dev/null +++ b/src/main/webapp/WEB-INF/views/jsp/index.jsp @@ -0,0 +1,16 @@ +<%-- + Created by IntelliJ IDEA. + User: user + Date: 2022-06-02 + Time: 오후 6:20 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + + index + + diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..8693682 --- /dev/null +++ b/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,85 @@ + + + + + contextConfigLocation + + classpath:spring/context-*.xml + + + + + org.springframework.web.context.ContextLoaderListener + + + + appServlet + org.springframework.web.servlet.DispatcherServlet + + contextConfigLocation + classpath:spring/dispatcher-servlet.xml + + 1 + + + appServlet + / + + + + encodingFilter + org.springframework.web.filter.CharacterEncodingFilter + + encoding + UTF-8 + + + forceEncoding + true + + + + encodingFilter + /* + + + + 420 + + + + + 400 + /error/error.do + + + + 401 + /error/error.do + + + + 404 + /error/error.do + + + + 405 + /error/error.do + + + + 500 + /error/error.do + + + + 503 + /error/error.do + + + +