diff --git a/main_vm/.gitignore b/main_vm/.gitignore
new file mode 100644
index 0000000..7814793
--- /dev/null
+++ b/main_vm/.gitignore
@@ -0,0 +1,43 @@
+HELP.md
+.gradle
+.idea
+build/
+**/.gradle
+**/.idea
+**/build
+
+!gradle/wrapper/gradle-wrapper.jar
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+
+.project
+.settings
+.springBeans
+.sts4-cache
+bin/
+!**/src/main/**/bin/
+!**/src/test/**/bin/
+
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+out/
+!**/src/main/**/out/
+!**/src/test/**/out/
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+
+### VS Code ###
+.vscode/
diff --git a/main_vm/.gradle/7.5.1/checksums/checksums.lock b/main_vm/.gradle/7.5.1/checksums/checksums.lock
index d90ea80..6b18317 100644
Binary files a/main_vm/.gradle/7.5.1/checksums/checksums.lock and b/main_vm/.gradle/7.5.1/checksums/checksums.lock differ
diff --git a/main_vm/.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock b/main_vm/.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock
index 967e1ae..3680f4e 100644
Binary files a/main_vm/.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock and b/main_vm/.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock differ
diff --git a/main_vm/.gradle/7.5.1/executionHistory/executionHistory.lock b/main_vm/.gradle/7.5.1/executionHistory/executionHistory.lock
index 2ab0ff2..8a054e4 100644
Binary files a/main_vm/.gradle/7.5.1/executionHistory/executionHistory.lock and b/main_vm/.gradle/7.5.1/executionHistory/executionHistory.lock differ
diff --git a/main_vm/.gradle/7.5.1/fileHashes/fileHashes.lock b/main_vm/.gradle/7.5.1/fileHashes/fileHashes.lock
index 4e8e072..5e37d14 100644
Binary files a/main_vm/.gradle/7.5.1/fileHashes/fileHashes.lock and b/main_vm/.gradle/7.5.1/fileHashes/fileHashes.lock differ
diff --git a/main_vm/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/main_vm/.gradle/buildOutputCleanup/buildOutputCleanup.lock
index 42daddb..3c95fdd 100644
Binary files a/main_vm/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/main_vm/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ
diff --git a/main_vm/.gradle/buildOutputCleanup/cache.properties b/main_vm/.gradle/buildOutputCleanup/cache.properties
index 29447a6..61a3eab 100644
--- a/main_vm/.gradle/buildOutputCleanup/cache.properties
+++ b/main_vm/.gradle/buildOutputCleanup/cache.properties
@@ -1,2 +1,2 @@
-#Wed Mar 29 10:55:16 KST 2023
+#Wed May 17 16:48:27 KST 2023
gradle.version=7.5.1
diff --git a/main_vm/.idea/gradle.xml b/main_vm/.idea/gradle.xml
index 611e7c8..77e9972 100644
--- a/main_vm/.idea/gradle.xml
+++ b/main_vm/.idea/gradle.xml
@@ -1,11 +1,11 @@
-
\ No newline at end of file
diff --git a/main_vm/.idea/vcs.xml b/main_vm/.idea/vcs.xml
index 6c0b863..b2bdec2 100644
--- a/main_vm/.idea/vcs.xml
+++ b/main_vm/.idea/vcs.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/main_vm/build.gradle b/main_vm/build.gradle
new file mode 100644
index 0000000..2d57736
--- /dev/null
+++ b/main_vm/build.gradle
@@ -0,0 +1,153 @@
+plugins {
+ id 'org.springframework.boot' version '2.7.6'
+ id "org.sonarqube" version "2.7"
+ id 'io.spring.dependency-management' version '1.0.14.RELEASE'
+ id 'java'
+ id 'com.ewerk.gradle.plugins.querydsl' version '1.0.10'
+}
+
+group = 'com.icom'
+version = '0.0.1-SNAPSHOT'
+sourceCompatibility = '11'
+//sourceCompatibility = '1.8'
+apply plugin: 'war'
+configurations {
+ compileOnly {
+ extendsFrom annotationProcessor
+ }
+ all{
+ exclude group: 'org.apache.logging.log4j', module: 'log4j-slf4j-impl'
+ }
+}
+
+repositories {
+ mavenCentral()
+ maven { url "https://maven.egovframe.go.kr/maven/" } // egovframe maven 원격 저장소
+ maven {
+ url "https://maven.egovframe.go.kr/maven/"
+ metadataSources {
+ artifact()
+ }
+ }
+}
+
+//repositories {
+// mavenCentral()
+// maven { url "https://maven.egovframe.go.kr/maven/" } // egovframe maven 원격 저장소
+//}
+
+
+ext {
+ set('springCloudVersion', "2021.0.4")
+ set('log4j2.version', "2.17.1") // log4j 보안 패치
+}
+
+dependencies {
+ implementation 'org.egovframe.cloud:module-common:0.1'
+ implementation('org.egovframe.rte:org.egovframe.rte.fdl.cmmn:4.0.0') {
+ exclude group: 'org.egovframe.rte', module: 'org.egovframe.rte.fdl.logging'
+ }
+ implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
+ implementation 'org.springframework.boot:spring-boot-starter-security'
+ implementation 'org.springframework.boot:spring-boot-starter-web'
+ implementation 'org.springframework.boot:spring-boot-starter-validation'
+
+ implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
+ implementation 'org.springframework.boot:spring-boot-starter-actuator'
+ implementation 'org.springframework.boot:spring-boot-starter-websocket'
+
+ implementation 'com.googlecode.json-simple:json-simple:1.1.1'
+ implementation 'com.google.code.gson:gson:2.9.1'
+ implementation 'com.googlecode.log4jdbc:log4jdbc:1.2'
+ // https://mvnrepository.com/artifact/com.google.guava/guava
+ implementation 'com.google.guava:guava:20.0'
+ implementation 'org.json:json:20210307'
+ implementation 'org.modelmapper:modelmapper:2.4.4'
+
+ implementation "com.querydsl:querydsl-jpa:5.0.0"
+ implementation 'com.querydsl:querydsl-apt:5.0.0'
+ implementation 'com.querydsl:querydsl-core:5.0.0'
+ implementation 'com.querydsl:querydsl-sql:5.0.0'
+ implementation 'com.querydsl:querydsl-sql-spring:5.0.0'
+ implementation 'com.querydsl:querydsl-sql-codegen:5.0.0'
+
+ implementation 'org.apache.tomcat:tomcat-jdbc:10.1.1'
+ implementation 'javax.servlet:javax.servlet-api'
+ implementation 'com.fasterxml.jackson.core:jackson-databind'
+
+ implementation 'org.apache.poi:poi:5.2.2'
+ implementation 'org.apache.poi:poi-ooxml:5.2.2'
+
+ implementation 'software.amazon.awssdk:s3:2.16.1'
+
+
+ //전자정부의존성
+ implementation 'commons-codec:commons-codec:1.15'
+// implementation group: 'commons-logging', name: 'commons-logging', version: '1.2'
+// implementation group: 'ch.qos.logback', name: 'logback-core', version: '1.4.5'
+// testImplementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.4.5'
+// implementation group: 'org.slf4j', name: 'jcl-over-slf4j', version: '2.0.6'
+
+
+
+
+ //jsp의존성
+ implementation 'org.apache.tomcat.embed:tomcat-embed-jasper'
+ implementation 'javax.servlet:jstl'
+ providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
+ testImplementation 'org.springframework.boot:spring-boot-starter-test'
+ testImplementation 'org.springframework.security:spring-security-test'
+ implementation 'net.jodah:expiringmap:0.5.9'
+ // https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient
+ implementation 'org.apache.httpcomponents:httpclient:4.5.14'
+
+
+ compileOnly 'org.projectlombok:lombok'
+ developmentOnly 'org.springframework.boot:spring-boot-devtools'
+
+// runtimeOnly 'com.oracle.database.jdbc:ojdbc8'
+ implementation 'mysql:mysql-connector-java:5.1.49'
+ implementation 'com.oracle.database.jdbc:ojdbc8:21.7.0.0'
+
+// implementation 'org.mybatis:mybatis:3.5.11'
+// implementation 'org.mybatis:mybatis-spring:2.0.7'
+ implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.2'
+
+ annotationProcessor 'org.projectlombok:lombok'
+
+ implementation("com.jayway.jsonpath:json-path:2.5.0")
+
+ implementation files("lib/ASRLIB-2.4.0.2.jar")
+ implementation files("lib/pttsnet_class.jar")
+}
+
+tasks.named('test') {
+ useJUnitPlatform()
+}
+
+
+dependencyManagement {
+ imports {
+ mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
+ }
+}
+
+// querydsl 추가 시작
+def querydslDir = "$buildDir/generated/querydsl"
+//def querydslDir = "src/main/qfile"
+//def querydslDir = "src/main/java/egovframework/example/jpa/qfile"
+querydsl {
+ library = 'com.querydsl:querydsl-apt:5.0.0'
+ jpa = true
+ querydslSourcesDir = querydslDir
+}
+sourceSets {
+ main.java.srcDir querydslDir
+}
+configurations {
+ querydsl.extendsFrom compileClasspath
+}
+compileQuerydsl {
+ options.annotationProcessorPath = configurations.querydsl
+}
+// querydsl 추가 끝
diff --git a/main_vm/gradle/wrapper/gradle-wrapper.jar b/main_vm/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..249e583
Binary files /dev/null and b/main_vm/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/main_vm/gradle/wrapper/gradle-wrapper.properties b/main_vm/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..ae04661
--- /dev/null
+++ b/main_vm/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,5 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/main_vm/gradlew b/main_vm/gradlew
new file mode 100644
index 0000000..a69d9cb
--- /dev/null
+++ b/main_vm/gradlew
@@ -0,0 +1,240 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
+done
+
+APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
+
+APP_NAME="Gradle"
+APP_BASE_NAME=${0##*/}
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+ echo "$*"
+} >&2
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD=java
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
+ fi
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
+ done
+fi
+
+# Collect all arguments for the java command;
+# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
+# shell script including quotes and variable substitutions, so put them in
+# double quotes to make sure that they get re-expanded; and
+# * put everything else in single quotes, so that it's not re-expanded.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Stop when "xargs" is not available.
+if ! command -v xargs >/dev/null 2>&1
+then
+ die "xargs is not available"
+fi
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
+exec "$JAVACMD" "$@"
diff --git a/main_vm/gradlew.bat b/main_vm/gradlew.bat
new file mode 100644
index 0000000..f127cfd
--- /dev/null
+++ b/main_vm/gradlew.bat
@@ -0,0 +1,91 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%"=="" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%"=="" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if %ERRORLEVEL% equ 0 goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if %ERRORLEVEL% equ 0 goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+set EXIT_CODE=%ERRORLEVEL%
+if %EXIT_CODE% equ 0 set EXIT_CODE=1
+if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
+exit /b %EXIT_CODE%
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/main_vm/lib/ASRLIB-2.4.0.2.jar b/main_vm/lib/ASRLIB-2.4.0.2.jar
new file mode 100644
index 0000000..55951d4
Binary files /dev/null and b/main_vm/lib/ASRLIB-2.4.0.2.jar differ
diff --git a/main_vm/lib/pttsnet_class.jar b/main_vm/lib/pttsnet_class.jar
new file mode 100644
index 0000000..5c32852
Binary files /dev/null and b/main_vm/lib/pttsnet_class.jar differ
diff --git a/main_vm/settings.gradle b/main_vm/settings.gradle
new file mode 100644
index 0000000..7a88422
--- /dev/null
+++ b/main_vm/settings.gradle
@@ -0,0 +1 @@
+rootProject.name = 'main_vm'
diff --git a/main_vm/src/main/java/com/icomsys/main_vm/MainVmApplication.java b/main_vm/src/main/java/com/icomsys/main_vm/MainVmApplication.java
new file mode 100644
index 0000000..e0a20ee
--- /dev/null
+++ b/main_vm/src/main/java/com/icomsys/main_vm/MainVmApplication.java
@@ -0,0 +1,22 @@
+package com.icomsys.main_vm;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+import org.springframework.cloud.openfeign.EnableFeignClients;
+import org.springframework.web.servlet.config.annotation.EnableWebMvc;
+
+@SpringBootApplication
+@EnableFeignClients
+@EnableWebMvc
+public class MainVmApplication extends SpringBootServletInitializer {
+
+ public static void main(String[] args) {
+ SpringApplication.run(MainVmApplication.class, args);
+ }
+
+ @Override
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
+ return application.sources(MainVmApplication.class);
+ }}
diff --git a/main_vm/src/main/java/com/icomsys/main_vm/ServletInitializer.java b/main_vm/src/main/java/com/icomsys/main_vm/ServletInitializer.java
new file mode 100644
index 0000000..d97bbaa
--- /dev/null
+++ b/main_vm/src/main/java/com/icomsys/main_vm/ServletInitializer.java
@@ -0,0 +1,13 @@
+package com.icomsys.main_vm;
+
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+
+public class ServletInitializer extends SpringBootServletInitializer {
+
+ @Override
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
+ return application.sources(MainVmApplication.class);
+ }
+
+}
diff --git a/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/AdviceHandler.java b/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/AdviceHandler.java
new file mode 100644
index 0000000..7046934
--- /dev/null
+++ b/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/AdviceHandler.java
@@ -0,0 +1,151 @@
+package com.icomsys.main_vm.biz.advice;
+
+import com.icomsys.main_vm.biz.advice.excep.CustomNoSuchFieldException;
+import com.icomsys.main_vm.biz.advice.excep.CustomRuntimeException;
+import com.icomsys.main_vm.biz.advice.excep.CustomBadRequestException;
+import com.icomsys.main_vm.biz.advice.excep.CustomNotFoundException;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.context.MessageSource;
+import org.springframework.context.NoSuchMessageException;
+import org.springframework.context.i18n.LocaleContextHolder;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.validation.BindException;
+import org.springframework.validation.ObjectError;
+import org.springframework.web.bind.annotation.ControllerAdvice;
+import org.springframework.web.bind.annotation.ExceptionHandler;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.server.ResponseStatusException;
+import org.springframework.web.servlet.NoHandlerFoundException;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Locale;
+import java.util.Objects;
+
+@ControllerAdvice
+@RequiredArgsConstructor
+@Slf4j
+public class AdviceHandler {
+
+ private final MessageSource messageSource;
+
+ @ExceptionHandler
+ public String noHandlerFoundHandle(RuntimeException e) {
+ log.error(e.getMessage());
+ return "cmm/error/error";
+ }
+
+ @ExceptionHandler
+ public ResponseEntity CustomRuntime(CustomRuntimeException e) {
+ ErrorResult er = new ErrorResult();
+ er.setCode(String.valueOf(HttpStatus.INTERNAL_SERVER_ERROR.value()));
+ er.setMessage(e.getMessage());
+ log.info("excep - {}", e);
+ return new ResponseEntity(er, HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+
+// @ExceptionHandler
+// public ResponseEntity DefaultNotFound(NotFoundException e) {
+// ErrorResult er = new ErrorResult();
+// er.setCode(String.valueOf(HttpStatus.NOT_FOUND.value()));
+// er.setMessage(messageSource.getMessage("info.nodata.msg", null, Locale.getDefault()));
+// log.info("excep - {}", messageSource.getMessage("info.nodata.msg", null, Locale.getDefault()));
+// return new ResponseEntity(er, HttpStatus.NOT_FOUND);
+// }
+
+ @ExceptionHandler
+ @ResponseBody
+ public ResponseEntity DefaultNotFound(IllegalArgumentException e) {
+ ErrorResult er = new ErrorResult();
+ er.setCode(String.valueOf(HttpStatus.NOT_FOUND.value()));
+ er.setMessage(messageSource.getMessage("info.nodata.msg", null, Locale.getDefault()));
+ log.info("excep - {} {}", messageSource.getMessage("info.nodata.msg", null, Locale.getDefault()),e.getMessage());
+ return new ResponseEntity(er, HttpStatus.NOT_FOUND);
+ }
+
+ @ExceptionHandler
+ public ResponseEntity CustomNotFound(CustomNotFoundException e) {
+ ErrorResult er = new ErrorResult();
+ er.setCode(String.valueOf(HttpStatus.NOT_FOUND.value()));
+ er.setMessage(e.getMessage());
+ log.info("excep - {}", e.getMessage());
+ return new ResponseEntity(er, HttpStatus.NOT_FOUND);
+ }
+
+ @ExceptionHandler
+ public ResponseEntity CustomBadRequest(CustomBadRequestException e) {
+ ErrorResult er = new ErrorResult();
+ er.setCode(String.valueOf(HttpStatus.BAD_REQUEST.value()));
+ er.setMessage(e.getMessage());
+ log.info("excep - {}", e.getMessage());
+ return new ResponseEntity(er, HttpStatus.BAD_REQUEST);
+ }
+
+ @ExceptionHandler
+ public ResponseEntity CustomBadRequest(IllegalAccessException e) {
+ ErrorResult er = new ErrorResult();
+ er.setCode(String.valueOf(HttpStatus.BAD_REQUEST.value()));
+ er.setMessage(messageSource.getMessage("fail.common.bad", null, Locale.getDefault()));
+ log.info("excep - {}", messageSource.getMessage("fail.common.bad", null, Locale.getDefault()));
+ return new ResponseEntity(er, HttpStatus.BAD_REQUEST);
+ }
+
+ @ExceptionHandler
+ public ResponseEntity CustomBindEx(BindException ex) {
+ ErrorResult er = new ErrorResult();
+ log.info("bind 들어옴");
+ String message = null;
+ List allErrors = ex.getBindingResult().getAllErrors();
+ for (ObjectError error : allErrors) {
+ message = Arrays.stream(Objects.requireNonNull(error.getCodes()))
+ .map(c -> {
+ Object[] arguments = error.getArguments();
+ Locale locale = LocaleContextHolder.getLocale();
+ try {
+ return messageSource.getMessage(c, arguments, locale);
+ } catch (NoSuchMessageException e) {
+ return null;
+ }
+ }).filter(Objects::nonNull)
+ .findFirst()
+ .orElse(error.getDefaultMessage());
+ }
+ log.error("error message: {}", message);
+ er.setMessage(message);
+ er.setCode(String.valueOf(HttpStatus.BAD_REQUEST.value()));
+ return new ResponseEntity(er, HttpStatus.BAD_REQUEST);
+ }
+
+ @ExceptionHandler
+ public ResponseEntity CustomNoSuchMessage(NoSuchMessageException e) {
+ ErrorResult er = new ErrorResult();
+ er.setCode(String.valueOf(HttpStatus.NOT_FOUND.value()));
+ er.setMessage(e.getMessage());
+ log.info("excep - {}", e.getMessage());
+ return new ResponseEntity(er, HttpStatus.NOT_FOUND);
+ }
+
+ @ExceptionHandler
+ public String CustomNoSuchFieldException(NoSuchFieldException e) {
+ return "adm/signin/signin";
+ }
+
+ @ExceptionHandler
+ public String CustomNoSuchFieldException(CustomNoSuchFieldException e) {
+ return "adm/signin/signin";
+ }
+
+ @ExceptionHandler(NoHandlerFoundException.class)
+ public String noHandlerFoundHandle(NoHandlerFoundException e) {
+ return "cmm/error/egovError";
+ }
+
+ @ExceptionHandler
+ public ResponseEntity responseStatusException(ResponseStatusException e) {
+ return ResponseEntity.status(e.getStatus()).build();
+ }
+
+
+}
diff --git a/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/ErrorResult.java b/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/ErrorResult.java
new file mode 100644
index 0000000..beb5f1d
--- /dev/null
+++ b/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/ErrorResult.java
@@ -0,0 +1,15 @@
+package com.icomsys.main_vm.biz.advice;
+
+import lombok.*;
+
+@Getter
+@Setter
+@AllArgsConstructor
+@NoArgsConstructor
+public class ErrorResult {
+
+ private String code;
+ private String message;
+
+
+}
diff --git a/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/README.md b/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/README.md
new file mode 100644
index 0000000..7674e71
--- /dev/null
+++ b/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/README.md
@@ -0,0 +1,2 @@
+전자정부의 경우 익셉션을 종류별로 잡기가 힘들어
+스프링부분으로 커스터마이징
diff --git a/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/excep/CustomBadRequestException.java b/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/excep/CustomBadRequestException.java
new file mode 100644
index 0000000..b0ebe13
--- /dev/null
+++ b/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/excep/CustomBadRequestException.java
@@ -0,0 +1,9 @@
+package com.icomsys.main_vm.biz.advice.excep;
+
+public class CustomBadRequestException extends Exception {
+ public CustomBadRequestException(){super("400Default");}
+ public CustomBadRequestException(String message){super(message);}
+ public CustomBadRequestException(String message, Throwable cause) {
+ super(message, cause);
+ }
+}
diff --git a/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/excep/CustomNoSuchFieldException.java b/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/excep/CustomNoSuchFieldException.java
new file mode 100644
index 0000000..89b3a2d
--- /dev/null
+++ b/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/excep/CustomNoSuchFieldException.java
@@ -0,0 +1,4 @@
+package com.icomsys.main_vm.biz.advice.excep;
+
+public class CustomNoSuchFieldException extends Exception{
+}
diff --git a/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/excep/CustomNotFoundException.java b/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/excep/CustomNotFoundException.java
new file mode 100644
index 0000000..e72729d
--- /dev/null
+++ b/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/excep/CustomNotFoundException.java
@@ -0,0 +1,16 @@
+package com.icomsys.main_vm.biz.advice.excep;
+
+import org.apache.ibatis.javassist.NotFoundException;
+
+public class CustomNotFoundException extends NotFoundException {
+ public CustomNotFoundException() {
+ super("404Default");
+ }
+ public CustomNotFoundException(String msg) {
+ super(msg);
+ }
+ public CustomNotFoundException(String msg, Exception e) {
+ super(msg, e);
+ }
+
+}
diff --git a/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/excep/CustomRuntimeException.java b/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/excep/CustomRuntimeException.java
new file mode 100644
index 0000000..1e9674f
--- /dev/null
+++ b/main_vm/src/main/java/com/icomsys/main_vm/biz/advice/excep/CustomRuntimeException.java
@@ -0,0 +1,13 @@
+package com.icomsys.main_vm.biz.advice.excep;
+
+
+public class CustomRuntimeException extends RuntimeException{
+
+ public CustomRuntimeException(){super("Default");}
+ public CustomRuntimeException(String message){super(message);}
+ public CustomRuntimeException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+
+}
diff --git a/main_vm/src/main/java/com/icomsys/main_vm/biz/common/common/service/ExcelService.java b/main_vm/src/main/java/com/icomsys/main_vm/biz/common/common/service/ExcelService.java
new file mode 100644
index 0000000..90de2e0
--- /dev/null
+++ b/main_vm/src/main/java/com/icomsys/main_vm/biz/common/common/service/ExcelService.java
@@ -0,0 +1,140 @@
+package com.icomsys.main_vm.biz.common.common.service;
+
+import com.google.gson.Gson;
+import com.google.gson.JsonDeserializer;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.poi.hssf.usermodel.HSSFWorkbook;
+import org.apache.poi.ss.usermodel.*;
+import org.json.JSONObject;
+import org.springframework.stereotype.Service;
+import org.springframework.web.multipart.MultipartFile;
+
+import javax.servlet.ServletOutputStream;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.lang.reflect.Field;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.time.LocalTime;
+import java.time.format.DateTimeFormatter;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.concurrent.atomic.AtomicInteger;
+import java.util.stream.Collectors;
+
+@Service
+@RequiredArgsConstructor
+@Slf4j
+public class ExcelService {
+
+ private final HttpServletRequest httpServletRequest;
+ private final HttpServletResponse httpServletResponse;
+
+ public void ExcelDownload(String fileName, List> data) throws IOException {
+ List title = new ArrayList<>();
+ for (Field e : data.get(0).getClass().getDeclaredFields()) {
+ title.add(e.getName());
+ }
+ ExcelDownload(fileName, data, title);
+ }
+ public void ExcelDownload(String fileName, List> data, List title) throws IOException {
+ Workbook wb = new HSSFWorkbook();
+ Sheet sheet = wb.createSheet("data");
+ CreationHelper createHelper = wb.getCreationHelper();
+ Row row = sheet.createRow(0);
+ CellStyle cellStyle1 = wb.createCellStyle();
+ cellStyle1.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());
+ applyCellStyle(cellStyle1);
+ CellStyle cellStyle2 = wb.createCellStyle();
+ cellStyle2.setFillForegroundColor(IndexedColors.WHITE.getIndex());
+ cellStyle2.setWrapText(true);
+ applyCellStyle(cellStyle2);
+ AtomicInteger ai = new AtomicInteger();
+ List keySet = new ArrayList<>();
+ for (String e : title) {
+ Cell c = row.createCell(ai.getAndIncrement());
+ c.setCellValue(e);
+ c.setCellStyle(cellStyle1);
+ }
+ sheet.autoSizeColumn(0);
+ for (Field e : data.get(0).getClass().getDeclaredFields()) {
+ keySet.add(e.getName());
+ }
+ row.setHeight((short) 500);
+ AtomicInteger ai1 = new AtomicInteger();
+ for (Object e : data) {
+ Row row1 = sheet.createRow(ai1.incrementAndGet());
+ AtomicInteger ai2 = new AtomicInteger();
+ JSONObject obj = new JSONObject(e);
+ for (String f : keySet) {
+ int rowNum = ai2.getAndIncrement();
+ if (obj.names().toList().contains(f)) {
+ Cell c = row1.createCell(rowNum);
+ c.setCellValue(createHelper.createRichTextString(obj.get(f).toString()));
+ c.setCellStyle(cellStyle2);
+ } else {
+ Cell c = row1.createCell(rowNum);
+ c.setCellValue(createHelper.createRichTextString(""));
+ c.setCellStyle(cellStyle2);
+ }
+ sheet.autoSizeColumn(rowNum);
+ //sheet.setColumnWidth(rowNum, (sheet.getColumnWidth(rowNum))+1024 );
+ sheet.setColumnWidth(rowNum, Math.min(255 * 100, sheet.getColumnWidth(rowNum) + 1200));
+ row1.setHeight((short) 500);
+ }
+ }
+ try (ServletOutputStream fileOut = httpServletResponse.getOutputStream())/*new FileOutputStream("base.xls"))*/ {
+ wb.write(fileOut);
+ httpServletResponse.setContentType("application/vnd.ms-excel; charset=EUC-KR");
+ httpServletResponse.setHeader("Content-Disposition", "attachment;filename=" + fileName + ".xls; charset=EUC-KR");
+ wb.write(httpServletResponse.getOutputStream());
+ }
+ }
+
+ private void applyCellStyle(CellStyle cellStyle) {
+ cellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);
+ cellStyle.setAlignment(HorizontalAlignment.CENTER);
+ cellStyle.setVerticalAlignment(VerticalAlignment.CENTER);
+ cellStyle.setBorderLeft(BorderStyle.THIN);
+ cellStyle.setBorderTop(BorderStyle.THIN);
+ cellStyle.setBorderRight(BorderStyle.THIN);
+ cellStyle.setBorderBottom(BorderStyle.THIN);
+ }
+
+ //엑셀파일을 List로 컨버팅해줌
+ public List ExcelUploadConvert(MultipartFile excel, Class base) throws IOException {
+ List baseVarName = new ArrayList<>();
+ List