From 4478f873c227df61c7b47dec6d4586b2820f659b Mon Sep 17 00:00:00 2001 From: eSEOYOUNG <78011838+eSEOYOUNG@users.noreply.github.com> Date: Sun, 17 Dec 2023 21:18:18 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A6=AC=EB=B7=B0=20=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=20=EB=93=B1=EB=A1=9D=20=EB=B0=8F=20=ED=99=95=EC=9D=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HELP.md | 23 ++ build.gradle | 33 +++ gradle/wrapper/gradle-wrapper.jar | 0 gradle/wrapper/gradle-wrapper.properties | 7 + gradlew | 249 ++++++++++++++++++ gradlew.bat | 92 +++++++ .../com/example/ysu/YsuApplication.class | Bin 0 -> 698 bytes .../com/example/ysu/common/CommonUtils.class | Bin 0 -> 772 bytes .../ysu/controller/ReviewController.class | Bin 0 -> 1455 bytes .../controller/ReviewInsertController.class | Bin 0 -> 3867 bytes .../ysu/controller/SelectMenuController.class | Bin 0 -> 1274 bytes .../example/ysu/model/dao/JacksonConfig.class | Bin 0 -> 1273 bytes .../com/example/ysu/model/dao/ReviewDAO.class | Bin 0 -> 476 bytes .../ysu/model/dao/ReviewInsertDAO.class | Bin 0 -> 951 bytes .../example/ysu/model/dao/SelectMenuDAO.class | Bin 0 -> 478 bytes .../com/example/ysu/model/dto/ReviewDTO.class | Bin 0 -> 2851 bytes .../example/ysu/model/dto/SelectMenuDTO.class | Bin 0 -> 2211 bytes .../com/example/ysu/model/dto/SignupDTO.class | Bin 0 -> 3811 bytes .../ysu/service/ReviewInsertService.class | Bin 0 -> 292 bytes .../ysu/service/ReviewInsertServiceImpl.class | Bin 0 -> 966 bytes .../example/ysu/service/ReviewService.class | Bin 0 -> 285 bytes .../ysu/service/ReviewServiceImpl.class | Bin 0 -> 1048 bytes .../ysu/service/SelectMenuService.class | Bin 0 -> 353 bytes .../ysu/service/SelectMenuServiceImpl.class | Bin 0 -> 1042 bytes .../resources/application.properties | 13 + .../resources/mybatis/mapper/ReviewMapper.xml | 29 ++ .../mybatis/mapper/SelectMenuMapper.xml | 16 ++ .../resources/mybatis/mybatis-config.xml | 11 + settings.gradle | 1 + .../java/com/example/ysu/YsuApplication.java | 13 + .../com/example/ysu/common/CommonUtils.java | 29 ++ .../ysu/controller/ReviewController.java | 30 +++ .../controller/ReviewInsertController.java | 62 +++++ .../ysu/controller/SelectMenuController.java | 28 ++ .../example/ysu/model/dao/JacksonConfig.java | 20 ++ .../com/example/ysu/model/dao/ReviewDAO.java | 19 ++ .../ysu/model/dao/ReviewInsertDAO.java | 17 ++ .../example/ysu/model/dao/SelectMenuDAO.java | 14 + .../com/example/ysu/model/dto/ReviewDTO.java | 28 ++ .../example/ysu/model/dto/SelectMenuDTO.java | 21 ++ .../com/example/ysu/model/dto/SignupDTO.java | 29 ++ .../ysu/service/ReviewInsertService.java | 8 + .../ysu/service/ReviewInsertServiceImpl.java | 21 ++ .../example/ysu/service/ReviewService.java | 11 + .../ysu/service/ReviewServiceImpl.java | 24 ++ .../ysu/service/SelectMenuService.java | 11 + .../ysu/service/SelectMenuServiceImpl.java | 26 ++ src/main/resources/application.properties | 13 + .../resources/mybatis/mapper/ReviewMapper.xml | 29 ++ .../mybatis/mapper/SelectMenuMapper.xml | 16 ++ src/main/resources/mybatis/mybatis-config.xml | 11 + .../com/example/ysu/YsuApplicationTests.java | 13 + 52 files changed, 967 insertions(+) create mode 100644 HELP.md create mode 100644 build.gradle create mode 100644 gradle/wrapper/gradle-wrapper.jar create mode 100644 gradle/wrapper/gradle-wrapper.properties create mode 100644 gradlew create mode 100644 gradlew.bat create mode 100644 out/production/classes/com/example/ysu/YsuApplication.class create mode 100644 out/production/classes/com/example/ysu/common/CommonUtils.class create mode 100644 out/production/classes/com/example/ysu/controller/ReviewController.class create mode 100644 out/production/classes/com/example/ysu/controller/ReviewInsertController.class create mode 100644 out/production/classes/com/example/ysu/controller/SelectMenuController.class create mode 100644 out/production/classes/com/example/ysu/model/dao/JacksonConfig.class create mode 100644 out/production/classes/com/example/ysu/model/dao/ReviewDAO.class create mode 100644 out/production/classes/com/example/ysu/model/dao/ReviewInsertDAO.class create mode 100644 out/production/classes/com/example/ysu/model/dao/SelectMenuDAO.class create mode 100644 out/production/classes/com/example/ysu/model/dto/ReviewDTO.class create mode 100644 out/production/classes/com/example/ysu/model/dto/SelectMenuDTO.class create mode 100644 out/production/classes/com/example/ysu/model/dto/SignupDTO.class create mode 100644 out/production/classes/com/example/ysu/service/ReviewInsertService.class create mode 100644 out/production/classes/com/example/ysu/service/ReviewInsertServiceImpl.class create mode 100644 out/production/classes/com/example/ysu/service/ReviewService.class create mode 100644 out/production/classes/com/example/ysu/service/ReviewServiceImpl.class create mode 100644 out/production/classes/com/example/ysu/service/SelectMenuService.class create mode 100644 out/production/classes/com/example/ysu/service/SelectMenuServiceImpl.class create mode 100644 out/production/resources/application.properties create mode 100644 out/production/resources/mybatis/mapper/ReviewMapper.xml create mode 100644 out/production/resources/mybatis/mapper/SelectMenuMapper.xml create mode 100644 out/production/resources/mybatis/mybatis-config.xml create mode 100644 settings.gradle create mode 100644 src/main/java/com/example/ysu/YsuApplication.java create mode 100644 src/main/java/com/example/ysu/common/CommonUtils.java create mode 100644 src/main/java/com/example/ysu/controller/ReviewController.java create mode 100644 src/main/java/com/example/ysu/controller/ReviewInsertController.java create mode 100644 src/main/java/com/example/ysu/controller/SelectMenuController.java create mode 100644 src/main/java/com/example/ysu/model/dao/JacksonConfig.java create mode 100644 src/main/java/com/example/ysu/model/dao/ReviewDAO.java create mode 100644 src/main/java/com/example/ysu/model/dao/ReviewInsertDAO.java create mode 100644 src/main/java/com/example/ysu/model/dao/SelectMenuDAO.java create mode 100644 src/main/java/com/example/ysu/model/dto/ReviewDTO.java create mode 100644 src/main/java/com/example/ysu/model/dto/SelectMenuDTO.java create mode 100644 src/main/java/com/example/ysu/model/dto/SignupDTO.java create mode 100644 src/main/java/com/example/ysu/service/ReviewInsertService.java create mode 100644 src/main/java/com/example/ysu/service/ReviewInsertServiceImpl.java create mode 100644 src/main/java/com/example/ysu/service/ReviewService.java create mode 100644 src/main/java/com/example/ysu/service/ReviewServiceImpl.java create mode 100644 src/main/java/com/example/ysu/service/SelectMenuService.java create mode 100644 src/main/java/com/example/ysu/service/SelectMenuServiceImpl.java create mode 100644 src/main/resources/application.properties create mode 100644 src/main/resources/mybatis/mapper/ReviewMapper.xml create mode 100644 src/main/resources/mybatis/mapper/SelectMenuMapper.xml create mode 100644 src/main/resources/mybatis/mybatis-config.xml create mode 100644 src/test/java/com/example/ysu/YsuApplicationTests.java diff --git a/HELP.md b/HELP.md new file mode 100644 index 0000000..72907e6 --- /dev/null +++ b/HELP.md @@ -0,0 +1,23 @@ +# Getting Started + +### Reference Documentation +For further reference, please consider the following sections: + +* [Official Gradle documentation](https://docs.gradle.org) +* [Spring Boot Gradle Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/2.7.16/gradle-plugin/reference/html/) +* [Create an OCI image](https://docs.spring.io/spring-boot/docs/2.7.16/gradle-plugin/reference/html/#build-image) +* [Spring Web](https://docs.spring.io/spring-boot/docs/2.7.16/reference/htmlsingle/index.html#web) + +### Guides +The following guides illustrate how to use some features concretely: + +* [Accessing data with MySQL](https://spring.io/guides/gs/accessing-data-mysql/) +* [Building a RESTful Web Service](https://spring.io/guides/gs/rest-service/) +* [Serving Web Content with Spring MVC](https://spring.io/guides/gs/serving-web-content/) +* [Building REST services with Spring](https://spring.io/guides/tutorials/rest/) + +### Additional Links +These additional references should also help you: + +* [Gradle Build Scans – insights for your project's build](https://scans.gradle.com#gradle) + diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..2c734c4 --- /dev/null +++ b/build.gradle @@ -0,0 +1,33 @@ +plugins { + id 'java' + id 'org.springframework.boot' version '2.7.16' + id 'io.spring.dependency-management' version '1.0.15.RELEASE' +} + +group = 'com.example' +version = '0.0.1-SNAPSHOT' + +java { + sourceCompatibility = '11' +} + +repositories { + mavenCentral() +} + +dependencies { + implementation 'org.springframework.boot:spring-boot-starter-web' + runtimeOnly 'com.mysql:mysql-connector-j' + implementation 'com.h2database:h2' + compileOnly 'org.springframework.boot:spring-boot-starter-data-jpa' + testImplementation 'org.springframework.boot:spring-boot-starter-test' + implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.0' + implementation 'org.springframework.boot:spring-boot-starter-validation' + + compileOnly 'org.projectlombok:lombok:1.18.12' + annotationProcessor 'org.projectlombok:lombok:1.18.12' +} + +tasks.named('test') { + useJUnitPlatform() +} diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..e69de29 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..1237eca --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew new file mode 100644 index 0000000..bbdc6e8 --- /dev/null +++ b/gradlew @@ -0,0 +1,249 @@ +#!/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/HEAD/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 + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit + +# 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 + if ! command -v java >/dev/null 2>&1 + then + 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 +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC3045 + 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 + + +# 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"' + +# 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/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..6689b85 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,92 @@ +@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=. +@rem This is normally unused +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/out/production/classes/com/example/ysu/YsuApplication.class b/out/production/classes/com/example/ysu/YsuApplication.class new file mode 100644 index 0000000000000000000000000000000000000000..045950874fd98b1f15e166ce4ced81957cc25a99 GIT binary patch literal 698 zcmaJvf?&ixY?g zKY$;Fm^DaArL;cGXujT?H|yt@$0q>au@$0@-iOIRV75ONW{7+Hx^P)T$jWU%8 zr;P3qZZ4E&SnXUySK_zenb0X8IIDEpt9XS?38_7$%n%MtX%l&*{37kYv3EQi!}>|7 zoyz4<6^iyd(Av0)n?Uy?V^dy?JlUlcxx6vGFXw|w8m^mBIhg1Pg1T-_oXy79jDPO}r zfO>i=6NW9wzp*V~qXFqdqQyCL|x~w z)APM_w{b)q;!aPkx{+k4v{K={eB zsODefRr5*n2Mm4O{Eos1)#f)8E}&gNKcAq+2o*w&OPCC*>;}N|3Vw;1yrMY5Jhc?B z&cXFh(6zBPrcD|YyT`-{B*!GbLQ>WU-6XCLiQyCCw}%=Iu!KY0MjOjG#_E)k6Ur`8 W|E+Asj9Ig7yZW4TFe+E~S^fhtrlMT{ literal 0 HcmV?d00001 diff --git a/out/production/classes/com/example/ysu/controller/ReviewController.class b/out/production/classes/com/example/ysu/controller/ReviewController.class new file mode 100644 index 0000000000000000000000000000000000000000..40ddc677ae05c3e1a2215d96c926497c807fbd9f GIT binary patch literal 1455 zcma)6TTfF#5dOAYO3R@jP!#G76uAlOg`1RM2t-3tg;2ta4`$mgW$|3dIeS1t_)lt# zMj!kE{wU+@IkhbpjZM0F@Z_5Or`J;(`n3rci>SP zDLhW%NfJ*Px_o)0cr&JuS5I+<;-R;Q3V^9Qw+w?)k!z$DaR=m!xn5z9-7s^G~>_Kj5pO_KuY=E95pE z2UJjjX6PH=m?#{GBf&$hY;F$8q;<`!P^jGn<;vHgQXx3tm~+yTVsSuN}7P zeMKQnUrMa(x!U(^Tl%%!*6IfYl60gSzEu?lw!x4ps;Vn==o8A)<)D@?Id>>Tn^&|~ z^S!>anO`BdvsW^6EK9tk+)6VkFQtAZ4iAYzde(L%?2xbrxCx7&)`C0ZFwL#67AAkQCDo0*B# z7^bgBiasO^3Bv$Mi?nusCch&2 Zkv7fgS`m&F8`N+T7>%qR)R`Ouego{AbiDuo literal 0 HcmV?d00001 diff --git a/out/production/classes/com/example/ysu/controller/ReviewInsertController.class b/out/production/classes/com/example/ysu/controller/ReviewInsertController.class new file mode 100644 index 0000000000000000000000000000000000000000..7eef58845322636adfb64ca73b668aec81e508fb GIT binary patch literal 3867 zcmcgvYj+dZ72P9C9!nZ97z}Yq!2}1tAOoSiY(fLZ1hsxuHckm?-D~Mu9z2>+X0B}9 zG)BKyFYmpRLw`ztL|6Bn87vvggnsGL(#)MR=ial=KIfiu=U@N% z=^v8yc0T$uDs%Tz7opu zz0kmg2|uXVVJ&dH%2FVza?KA`>_sWO&|VTHJfq9SkB zTwj!DgjzPxHE~C*3fmQ4#hz7qVJhz$qd6r!H80#ceQ3Yrc#gVkplx7q-avZHFH_n% z;dpYYUR{*IoFG)am|qg^ya*iqoCwou*&+5b+juDXo(g=|mBAJ&Xgd)T$sQ+S^O{g1 zrptgoupM%tB{6Gq(XQ5A<y9f&2V2fqR;orYVU7OFamGQd6U6Q%&WO!V zk#qyun9OT)(*~a3=2w;MxOQ3jiCa|TA_nJmHz6OtTaq;$S8X6(Z(%KP6eD0Dp9mO) zfKv+wa*4#L^7ZMK;Gg6!V>+uuX=PH>lCWfFor)(^Js__4{=bx7YN8>@xyxkX?2cY7 zI$pUsv1j~H(UV%7t(nz0OAp#_R;5>8aLRAlFR-pbx+L*y?2xhwrs9*Pi?*^ z->Az_MavL(N5E&j&DvNZ!0ZUcsx0V@W?+0^$5nUE%oaOxj~_S{#}lqj-Z%+6bXLZj zI9(Aue{d!Q6@x!5FQ(bCo#uqfIol1~Sy~l&Z zZKN90$y4j<)p}|~a8rnF9a#&<(Qn|$*ob|TMKrYQyv8LpDA_d<9@^X=7LK9M!Wga@ zIQDq)ZLv8m)Uj$}&B9%*Tlgy8wD2{oS~!AU6K`4gI^H(0SJ$B4uwE+3FkGs;?z)L@ zSa=8Tvhp_~wn?*v_t0Z(H~dzR!4E7v#I#tNh-$uJx9=sEHp~_#xgk@goaA z#!oD~k3N>ZtG=&76^PoTRLg!j>} zx)?T0#O3cm^ZJkUw1Hg>&8RF6KknlbIxPu|Yed|x4GauCRUy}Q`&)J47OlfT%3m?? zQZxRT$p5MRbn1SuqVhc#2z{nFwj+QWY+%$>b#~nD!qnV&aq7y%!t8i)e!RFaUMx-* zb;o*&=?p|W>5mr5U-irDSL=>j)*-YCo+pDbSA?OYmDgKWxQLDhnx}WTugMreoY@iU z);8TdjVF{vA~s;Rn*4+|$<0%dYPzY^dQrdMKhT`2o5!SVD0#9FJa*;qYkXkf=qFSr z!!U5LDpn-xVo9i19kt96Y4(&p-8JV)Vx(z@B$Ad$ax4>GxWt2)&wZDy^QaFD&YSp+ zt{T5L(AU_Lj<@Qs$mGx$1G*lcAx->|(Vy`Bm3qy<2hFgONpVHGA-u9H!@gK^bUW52 z$(D(8>owUz{dSZ7=04d5cuctNEZh31i9a!!x4mzL&A{O&>)|Lr3J$Yt83pw>`&odWbGV3k~+}_jc166K<7-lw1-X| zpi@Wa%yD8kO^x%^xJY!DiBIFbK}{2!8YO^lcLf9W=ikaj=Icm0~-m$fkDikri;(J-Z@ z=W*pVT;(F{^OR}=|3M=e-cJqx6DNlsqT9gahd6NJBOC;#KE^Y*PToh)NP4&@{Sco@ z;l#bk6B~He&?M;)4DxF(Ch0h`dL2q%M4nD|6T}fZ)K8aUiY_p0qY*)u=~SM%Gfu}- z)ZCBj9JNtDhgV2nnp%3DLPW-?O{z}ebEL(HXfcs;OdLv6@$)pCB6~Xhx;UETeTr%^ fJJa}HB46TX>UZ0-_$~f`-=PO9ly^|i<-hu0U>{tN literal 0 HcmV?d00001 diff --git a/out/production/classes/com/example/ysu/controller/SelectMenuController.class b/out/production/classes/com/example/ysu/controller/SelectMenuController.class new file mode 100644 index 0000000000000000000000000000000000000000..734fc553097b770bae1d0c223668afc4dd528248 GIT binary patch literal 1274 zcma)5+iuf95IvhT33W`b&^Fv#Zn>bYkSah*34$UJl1rgfz73tG^!G*6rpSWjwS?UezKZ-oa7rJjfZ<_6NXv7z@7cEW$Fyt> zgOq5xt~##Jp-uI5t=aRM! z%kw)t==#d-y!VA8k39baKax$}RBoG#A(p?EdRuh6gd@sKPuL+z%W#KUeyV#fj^DHy zs>OcuY~gme<rVU#Vz53ZwBF-Sc`hUkp#qt!+;RdUU*MB8Lk( zluS&+Fj2;`iR-8^@X5*l&%jZm<57=qYo~cgPl=&4Npfbn4EYXC2i;l!^3%mq1FQ60 zv-EQ5ZA3E3N|Q}O>7OTWgFHrmqx=o*1Sy6ur%VaHKdBFaRm{NqvN9>goq*Dp{m6(314;#?a0j!`vRLKNaaFqyik?Lz? vFlzM;TBBNOgKS3m2d2uE?_ggkI$n!8mdqF?GvdxLLf(w=x8k%>^{c>N08mMr literal 0 HcmV?d00001 diff --git a/out/production/classes/com/example/ysu/model/dao/JacksonConfig.class b/out/production/classes/com/example/ysu/model/dao/JacksonConfig.class new file mode 100644 index 0000000000000000000000000000000000000000..ebba848ea6542f58c6f4f382c062ee31e6cd9c48 GIT binary patch literal 1273 zcmbVMZBG+H5Pr6l9@Ik+6a{<%e4$WbV~qF#V^X0cn4*SjAo7K5+oder?KXFNg8nM? z10<681N>3OxhnyQCavBjvpcgh&%Eyb`1$QSfah4q;|eAm+|DC|iGJL{-DG#q!DJpe zOeAC~kxVXwHBpI%ly6`tes1p86 zn6-N zyelFr!=u3G`)vaOxWa6 zD^$9<8;U?4n(%hXF{xvhsX2J);t^(C6fn#1q=RW}mCrrfSP@pPnlKR7#T<$*9%G(irppF03?+GT zU+CspV;G)xaP3JN8ee@%Q(cw9#vu*V*w)5cwY;-Zs+PT-lDAV`TQ7Un()v4(;aR61 z{|%D*<1|#%9@j?Uzaai~7)K73-CH)k(QCR&L$+-+rM6hu?g;c}KPdizNZN}AF_a6H zwA|@9UK}iSM89-rFoonR z!w9YuNMc+=5AA^IQ)J$spr=y&itI6Zw~D98k-#CQ?->1C#m}UbL4rJtEYYjzBW{TP kNs=U9M%zedUivUjer}MrQ94Vaxk+mVw^BNGE*%Gc0mV~msQ>@~ literal 0 HcmV?d00001 diff --git a/out/production/classes/com/example/ysu/model/dao/ReviewDAO.class b/out/production/classes/com/example/ysu/model/dao/ReviewDAO.class new file mode 100644 index 0000000000000000000000000000000000000000..2286dfb7cbd35872195017cf2092fbf8a93d55bd GIT binary patch literal 476 zcma)3!Ab)$5S_HOYiq4lPo4#75zJArMJN=Zu(Hrf@9B12Q?p4(vaS6!4}O3jB~I6( z2NAsFWnSLQJYL>EUf%%V8crhUL~zWYWrnQzSHiw7ca$1@FGaXw`89|V=6N(LgA3X&2PovU%PH;(9Y!u z6$YABqgh)AQ&YGU@1!EGy>mBAuC_iHoJ|THWR5fG%L#t&=)?bRx&KanIZbbZElHB4uKYm%+FVsn7q&PJCxKOc->^ zoRrWRPv%QZL!AMG3jGT}wZ@^J^>^t Bhy?%u literal 0 HcmV?d00001 diff --git a/out/production/classes/com/example/ysu/model/dao/ReviewInsertDAO.class b/out/production/classes/com/example/ysu/model/dao/ReviewInsertDAO.class new file mode 100644 index 0000000000000000000000000000000000000000..6de50be35b4e3e0897ecd8a6747b1e603e529bd2 GIT binary patch literal 951 zcma)4U2hUW6g>kJ3dKTet=8|_s!)<0-!#FP5Su1VP?FN%^RP_m)ZLwRW+?KrOiYYE z_yhb=#=8p^Vrs(6J-IXIp1JqT{q_6DPXI5mUqT*ti&(+ERoq|013WC?Q2~z`O7>IG zmDVa9F+6K)Gvp!`{<-9;FPyU6PA_@)iq~Y=IT=Mxg|ert>IbqFMcNTtN0#ALDq>@! zqT!hlp&V=Tk@uyDEI$*z(`LfORRM2}oE|G92PB(+ts>>#Fl1}>9z*V}9!Q2tTSfBy zDC|pfD(E$a&9?SM&=W=_`Rp*~&J{i1X!|Di~;ksX&8*KSI5y#Rr%UDCXi~?2}UXVxL%p;FH@=}jH^2nQZ zMDBQt))cT?#uMx@)R(rG+)c*efry5@)4!0uW7uD2!)Oy!`biAWYwfv6*Ck8UTsWD^ zHtWaOrR~nswlids83~J&CY20sr;R36 JcPQTh{s7%g{9OP5 literal 0 HcmV?d00001 diff --git a/out/production/classes/com/example/ysu/model/dao/SelectMenuDAO.class b/out/production/classes/com/example/ysu/model/dao/SelectMenuDAO.class new file mode 100644 index 0000000000000000000000000000000000000000..17695bdd12642f55712005c049119d749ab47852 GIT binary patch literal 478 zcma)3!Ab)$5S`T8+O5{on?Il}f^+n+DpW)ewk)*bJ>4DG)NB%xth&GE!4L4G#B@DW z5y49)FL}H-^XC2I^$h?{Vc3O17xozp79=V2Gg4I|oM$i^Pm&dX;#hehas3uE=q*H{ zxUVcRIR8aBOEO&|z3|dV!rE0>>YOCzUgJjo>Nbrpf>ytv#_qDd$r;4sFE`0mfr(Z{ zJo&d8gJ_{Eo6)t9p|R07uW5R+9)iKayi#72bSIoxN}4LAJ@-N@$KW{8wm@gBP{qCF zB|U5Vh|ZHG?Q26gC!?M4+SZ}(!-mZb&mIWHGKe_j8#$bDW5@>L(I08>A8AZe2E!)k uX7qHq3Tx;vV9*L10%)}vY(YEV?KOf)O literal 0 HcmV?d00001 diff --git a/out/production/classes/com/example/ysu/model/dto/ReviewDTO.class b/out/production/classes/com/example/ysu/model/dto/ReviewDTO.class new file mode 100644 index 0000000000000000000000000000000000000000..9171b332d070408523bb88118d295d05dff99908 GIT binary patch literal 2851 zcmb7G=~L5C5a0AjnjRc2Ek?W%E#Zjw0ay2U`lfQQ)lviQc|lmmps~G>=WAX|@~2j_cU%#;OEzZ@+D}ED2H_r*1jSu`uMg z)po6h<)Ek1vf4h7>R89Nb;5kd0{z6XT||^16BxR#>F}FtQ;rEAxaZnUW5aYUM9l^6 zj@7Wct_0~mb_=nTuH}AYX^Q2cnu6lz_mJ9pr;fnmRl9Ay@3jsrXV*Mvq9tGL)Xe6d z>DY7+j0yLX-IZXjTI;k7>$BN9YFfsZZqH~TO4F#j9peL|wz0d7wW%z<-<}NW+k+03 zhRf-7xI9dv7q+x&(N8T_6Vf>gX|lxKp+^*fj2CYv>{(Qn>V zd49BeNRK%L^ib#Yif01){E!`badvnaX2-9b9k&JSxWQ+a?`PulkR10KkmDvsPF}Oy zwp)?lbofgIgE2~W$kJ!?-=q6KWGj(24d=3;k#?SJE3hWPY=jZVPViT)2wcBZpfj4KYfM zT8y%@6ANG`*1%3IgPm9jJFyscVm<7{lGuq=;aLI+X5a$Ki+Ec>+!&s+zTkoMjrm=o zJN_OZ0hdvhd=I#SRnd>kDw5FSniwY*6^9rR&MaIH^u#tqvFsPC7iOj9wjOcO$6c0gN|~f <5G*N`JAg)J^ibE4gIE&)` zq@&`{L=(;uETbe|2D<|!_3t2kMMDhuIIC=&v*>~j!8l78A_|U$gEPY5TX0*DIUWwq z34`wlgA?K4abfUXVQ?}WJShymC*&-LgA2mo`@+mhIJhVbet`c-jee?BICxqZ{79Ht z4F_w&;KxGF>2UCjFn9%4gR+0)NM&$tdJxl>Jc#RB!h?jaB|RKKP4;lD zYKjMnuBALk>6+?+s%vQvMkZWlS&w|=!KSSQn-;UN?N6J!LVtiD&NSLr38vA;NivOg qhRig2^$OGI-KLmEFHdC}y`402!aq|Z9|W0&pP(Xa%M*l(LFF$aRIU#I literal 0 HcmV?d00001 diff --git a/out/production/classes/com/example/ysu/model/dto/SelectMenuDTO.class b/out/production/classes/com/example/ysu/model/dto/SelectMenuDTO.class new file mode 100644 index 0000000000000000000000000000000000000000..ad3a293a7baf86507cecb9879a613b224729eae4 GIT binary patch literal 2211 zcma)6OK;Oa5S~q(IPbJ+Qz+$CUQOJGAv_9gDF+Zzq(Tp^dO||3y9zG0Q#lEO|I`CW zSV$cB0sJV$%-UWL^NnYAfB*UU3jj9ZMHwpah|FU$PsnVNc}nIPnJqHg z6{y0F4$pPiWuSZ9pS*WY7_dHrvhaM%;|yARr`9LSbS-~i9*hIWA8a$IiU4~U_&i`x z5#Cwg*ccyS&n)|+{NQ-j06#=gBg^F@Nf7XXGaBQk0Uy7S0`i?MO3+>oPY~4HbA0}G z;vMtg&^mU7o}q2IM^@mFA0KMt4-T?+_w1o(^3Rrc=5q7PXkvQE;+iMpp?SbvZi_6h z4)?Kyn#>uMIp6833T?>rVKR(ntT5u66p|Ba|l3B5Cc; zv@!~7$go74JdoNFUv#4`U8zm_Qk(Rpw&ITCJ7b&QGHQYvI>7~g@Ni?Bts zMR8b%E4Z&k0k8yD(PMB8uA@zZb6->7h7x>33C^d%O(poIQnr?sJ);CKE5U^{cvcC% zrIcMv%Wf&bx0RXobmloF_>K}>N`vQ>;Ja`yZq*jfOO6_AEQP?nrFvBs=!GaEZZr)6 zO&ZO|3UsD;Rzt{T<)KL>p01iFpOuFuop=m&U0PNix+%o7s^%$V<)NEKJZtK@idlK+ zrV`J(T92NUhi*FYY^ZrkS$XKCARc_S&|bXiKcJkZsVIlfga0KH`=8TrUX|-rgsrrGN`?HP%(pe6lu_V^dduE g?5N$E*ipj@Vn@HcD0cMIbg`qdOQ^YrUJf4q1y%MfPyhe` literal 0 HcmV?d00001 diff --git a/out/production/classes/com/example/ysu/model/dto/SignupDTO.class b/out/production/classes/com/example/ysu/model/dto/SignupDTO.class new file mode 100644 index 0000000000000000000000000000000000000000..4c32253d508d3dd7fcf41f0d59c6839c0097d2b5 GIT binary patch literal 3811 zcma)8?Q;|57C%qAFG(6`0eOiQjZ(C4X`m`%N)@OeXbW75^-3wYBx}1g*^S8tL9cgE zi_=lYQOAyz5ylx6=HA;6$mJqBjH6$?Gxy){8%h6z>-GN5?j~uPh3SW!J-tpC7IjK@g zkWxHhYFS;->Y-EGX)Te_%!$N^oj1&henHX0MbkF2`lwMbPG*0b}qhf`D-oy z=J;EEJzKZD-7aWvdFCJG%OA%|b03#J_$;>Y!4Kt`xzhYC?3KQ~9V>tJW%-L+3$tIw z`mh7v%J047@7TurL>xJrt4{{fnAUSPB3PLH;?6&BJ8zqv#@jr;*qv*iI_ifrr4PSB zsCRR`&v9HTo-oqL7uZVIXYQIW_4wGa^mrE{ZF3_nUA^EFfFSVY-Vn5@^uu)N+Br}z z%-wP_;8%rM$Fl>yU1M9~Pmg!HDw4V@essLE_pR+cTerO}Xta(9sonn9t=l-$<+*o| z-&pCwxmfxA3vQ}=Vy<&NjRkmjzI^d-3$t_84p4R&reQxLsHvlK6n+m{Y4lCYkYVZv zirJHT{)mP~5C4169XKo%!S=oesM$6_hdg5%Mn8<=9lStcEV#Js* zi@E2H97Gd^CUpBHul?`q==8e)F2pUZ>cF`yuEq%s6>1b~I~o}{1{dRTICzJ{(U?Qg zUoUDI_+3YE@Z>2yW%qX;6(p?s>**Z{k}Z2u&kJhixZ5i?IpXYAmz6`;f$E{V40)F9 zQMh8qi^>5zSUupyiV<5&O$}=~FXzFOX71qt1O+Fx!lYX;RBu20J9K#e@E!yJ9XGa6 z%;1KoRnJ&+-H@U2TlvW^3EGxBgYfbZtC&yedkwDo%4+#~d0Iv2QF<&wt+Xma53qQU z#Ur!|oxY3~h|nI|9-%n(Mle&MC0N_SVk?Wi^t_+ph)Jqp zjtV;F(^id*wwxWG4p-?E2Vx3puLWY5r>!a7`wF-|?bTAYl|QQzMy@hsSyM$Qk^QEr z=La)dp`gRjxy6op9B$6`X=Xa37usFJ{(JgbXUKEb2R^olp>j_aZFv-fS|&4M*m}Q8 zuVW}Q#OLRmpa<`bqlfVkZNcYLq5wA@B!5h!c&;Hq_Z4U@t;1q{fj00eO84V4y zw5i7AK~^9yxTlaENJRoqfv4Q{J&Et21gH~IaW1hAU*kS{+%rxhLjlfESNFdt;GZ#W zC(fapG1j;>Inht}^E54&hZ~c5p7iIDmdnF!$voTqdF18ta8oi5<~1aGLi`1>HzWG% z-Cb8mmgc*EA>|^;P4nG9lQP`Xb(2(Q2_<--2O=rO|4q$N=~r5Hl_K$|bdy3AL^vq} z5>6^nnK8<*wE8Noh{{oA5vVz-0@R!gMpXs{J&+m=E&@f8A%G&ua5TiAum=i7!xfM; z53idVxko+NN5=zkroy+kGt)~Of6erDpr{EvhkdS5} zkXjPr4;a?g0p3_kas^PqNcCGDOj!i0A(!rYV6`4x!}}b-1Th}0POzPbiKq5DE(fO` szh?X*KhjE~r6XJ3oRO@6Ichaeic9M|F&FMoB#j- literal 0 HcmV?d00001 diff --git a/out/production/classes/com/example/ysu/service/ReviewInsertService.class b/out/production/classes/com/example/ysu/service/ReviewInsertService.class new file mode 100644 index 0000000000000000000000000000000000000000..c87c621e76b5f4cdab60780aafad3c75c51f6376 GIT binary patch literal 292 zcmZ9H%}N775QM8^+|}s8qrO3cU>`l?B#0mc0*T~4*>skP^Rvv%Zp^EB@Bw@%aq@G~ zOLs#R^;LiWe0~9V#8rvQ5(C0@kWS0?)kO)3FdR-QZ&^N+ZH(|Pwru@M46l;s*}?k! zHXV-^gu&dmp^_JEgm8P*jxloyov!3zqdG;no3$=!D+?X<(#Vr@KB=U=iy1fZq2|~G z?do+tLM1)`{6oP@aXe>4eLVA{oV!PqUmSdLUyy5Skw@CpQ_cy;iBRZy5G!SHSJ|7|L&n zmI~;oRKClTzBI?8A5&z#qazXbgi+3)2g~-o${1c;5TUxqDw0d39nE3~)B%;ad6=hG zC95zB(r!um%LsuYSDAn9l zcF$ujT|1I2&b}?Izz!|<3TPkcthCm0`AVTDN-emaA&NfO>d`ii>%Yypxg1c=KMkZGrY!El>XAY55QWcZH1!XpK0~2yyvu@$D-j9-p(*Zf;}CARF(tW)?W=Xs2k@c9N#d&A z%{epk&6&&f=NG^WCO$?!#)M(cmEm(>3P+edzs`e1S6Y?MSXG-V!XPy9NxL#r#5 E22h7h5&!@I literal 0 HcmV?d00001 diff --git a/out/production/classes/com/example/ysu/service/ReviewServiceImpl.class b/out/production/classes/com/example/ysu/service/ReviewServiceImpl.class new file mode 100644 index 0000000000000000000000000000000000000000..672bda63433b576f698b5a26ccbddc2621aedc73 GIT binary patch literal 1048 zcma)5U279T6g{&^6O*j=OH*srT5B|k;5;g(R6<1vEC$+=SD9?4aq51A+1bSWD+NLH z!5`p{67O!-RMG}z;m+LQ+%xB%JNxt3_a6YBqgh4)dnK&kVFmkml!RIlkBfLxM4h3e zvor+=D4BH8g6Jw6a2KmG%2F>D{lflAO03tvt`{ekzT2qJzaTodXk7xMz%j!igGS`LVIbta_~L{ghn(9?ek znuDpnaG(NZ4jFRwMvozXMB<6nQGt9L`+ccT1*v7&a6(sjJ)u>SXNP(7UXlFEH%TLv&+#rr1%DVc4v98qT>G3mzNg@#K&oMPCN-J2hZn9di3b4Fh3fO)_3y z#vd%}*USfS+HD;Yt(}ccdeRVAp17#xY?$eF<&!Yhu6(1CmaDVz{iXg{qLiV2<+vgv zwG7R4BzacSvT*~eHm;#mM8n1{RBi0wE<e0m6UBQA-6Y0>l|!d;^BQd(Cr z;pyMPB2G;q_(K*u&EilyQJ9Ri$gB}(`qgF~Ej`yT=T`3d@R|{#*-1^yG8eHa^C-NU zjW9@zt5SYZ+8djmwGyuOD&=|e2qFAyuRe`0%>5n^9@^hqH|zJUPo_^GbbM$)r$^|b T=kZO0(DyjNt*?DTZD;TUbO>ft literal 0 HcmV?d00001 diff --git a/out/production/classes/com/example/ysu/service/SelectMenuServiceImpl.class b/out/production/classes/com/example/ysu/service/SelectMenuServiceImpl.class new file mode 100644 index 0000000000000000000000000000000000000000..ff24d0ec8312e67f4475965b0d4733e23287dcb9 GIT binary patch literal 1042 zcma)*+iuf95QhJCLP8w(K!DPgV>vZRfxSWEA|JQQNqiAabQ#D!-)JiWut_hGH#b~r;NJ{ zD~SliK))7I`tqQ|&~OJT_jjsn5QNy#6L}U^$eNv?URTLFlPs)ZoxBV5SVUw-39^Rtj3O4T zRYTf4L&3_SHZ#=5ByEbK4Y-UAf-q8aa|&xuVRrKyip{;RV4t%iXJt8aEc*}3&YEPj Pdn?P|##LHPBiDf69w!0P literal 0 HcmV?d00001 diff --git a/out/production/resources/application.properties b/out/production/resources/application.properties new file mode 100644 index 0000000..825f2b3 --- /dev/null +++ b/out/production/resources/application.properties @@ -0,0 +1,13 @@ +# database +spring.datasource.url: jdbc:mysql://localhost:3306/ysu?characterEncoding=utf8 +spring.datasource.username: root +spring.datasource.password: 1234 +spring.datasource.driver-class-name: com.mysql.cj.jdbc.Driver + +# mybatis +mybatis.config=mybatis-config.xml +mybatis.type-aliases-package: com.example.demo.model +mybatis.mapper-locations: mybatis/mapper/*.xml + +spring.servlet.multipart.max-file-size=10MB +spring.servlet.multipart.max-request-size=10MB \ No newline at end of file diff --git a/out/production/resources/mybatis/mapper/ReviewMapper.xml b/out/production/resources/mybatis/mapper/ReviewMapper.xml new file mode 100644 index 0000000..34fbda2 --- /dev/null +++ b/out/production/resources/mybatis/mapper/ReviewMapper.xml @@ -0,0 +1,29 @@ + + + + + + + + + INSERT INTO review (u_id, u_name, order_id, menu_id, review_writing, review_star, review_time, review_regist, review_img) + SELECT u.u_id, u.u_name, od.order_id, od.menu_id, #{review_writing}, #{review_star}, NOW() as review_time, 1, #{review_img} + FROM orders o + INNER JOIN orderdetail od ON o.order_id = od.order_id + INNER JOIN menu m ON od.menu_id = m.menu_id + INNER JOIN users u ON u.u_id = od.u_id + + + WHERE od.u_id ='2023200014' AND od.order_id=5 AND od.menu_id=5; + + + + DELETE FROM REVIEW WHERE review_id=#{review_id}; + + \ No newline at end of file diff --git a/out/production/resources/mybatis/mapper/SelectMenuMapper.xml b/out/production/resources/mybatis/mapper/SelectMenuMapper.xml new file mode 100644 index 0000000..a445eb8 --- /dev/null +++ b/out/production/resources/mybatis/mapper/SelectMenuMapper.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/out/production/resources/mybatis/mybatis-config.xml b/out/production/resources/mybatis/mybatis-config.xml new file mode 100644 index 0000000..90d73a4 --- /dev/null +++ b/out/production/resources/mybatis/mybatis-config.xml @@ -0,0 +1,11 @@ + + + + + + + + + + \ No newline at end of file diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..8d9902c --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +rootProject.name = 'ysu' diff --git a/src/main/java/com/example/ysu/YsuApplication.java b/src/main/java/com/example/ysu/YsuApplication.java new file mode 100644 index 0000000..2b855c0 --- /dev/null +++ b/src/main/java/com/example/ysu/YsuApplication.java @@ -0,0 +1,13 @@ +package com.example.ysu; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class YsuApplication { + + public static void main(String[] args) { + SpringApplication.run(YsuApplication.class, args); + } + +} diff --git a/src/main/java/com/example/ysu/common/CommonUtils.java b/src/main/java/com/example/ysu/common/CommonUtils.java new file mode 100644 index 0000000..21ddca8 --- /dev/null +++ b/src/main/java/com/example/ysu/common/CommonUtils.java @@ -0,0 +1,29 @@ +package com.example.ysu.common; + +import java.util.List; +import java.util.Map; + +public class CommonUtils { + /* + 공백 또는 null 체크 + */ + public static boolean isEmpty(Object obj){ + if(obj == null) return true; + if((obj instanceof String) &&(((String)obj).trim().length() == 0)) { + return true; + } + if (obj instanceof Map) { + return ((Map) obj).isEmpty(); + } + if (obj instanceof Map){ + return ((Map)obj).isEmpty(); + } + if (obj instanceof List) { + return ((List)obj).isEmpty(); + } + if (obj instanceof Object[]) { + return (((Object[])obj).length == 0); + } + return false; + } +} diff --git a/src/main/java/com/example/ysu/controller/ReviewController.java b/src/main/java/com/example/ysu/controller/ReviewController.java new file mode 100644 index 0000000..16ed9fd --- /dev/null +++ b/src/main/java/com/example/ysu/controller/ReviewController.java @@ -0,0 +1,30 @@ +package com.example.ysu.controller; + +import com.example.ysu.model.dto.ReviewDTO; +import com.example.ysu.service.ReviewService; +import lombok.RequiredArgsConstructor; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.*; +import java.util.List; + +@RequiredArgsConstructor +@RestController +public class ReviewController { + @Autowired + private ReviewService reviewService; + + @GetMapping("/menu/{menu_id}/review") + public List reviewList(@PathVariable int menu_id) { + return reviewService.reviewList(menu_id); + } + + @DeleteMapping("/review/delete/{review_id}") + public String reviewDelete(@PathVariable int review_id) { + reviewService.reviewDelete(review_id); + System.out.print(review_id); + return "redirect:/menu"; + // Review 삭제 로직을 수행 + } +} diff --git a/src/main/java/com/example/ysu/controller/ReviewInsertController.java b/src/main/java/com/example/ysu/controller/ReviewInsertController.java new file mode 100644 index 0000000..527a0c7 --- /dev/null +++ b/src/main/java/com/example/ysu/controller/ReviewInsertController.java @@ -0,0 +1,62 @@ +package com.example.ysu.controller; + +import com.example.ysu.model.dto.ReviewDTO; +import com.example.ysu.service.ReviewInsertService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.http.HttpStatus; + +import java.io.File; +import java.io.IOException; + +@RestController +@RequestMapping("/menu") +//@RequestMapping +public class ReviewInsertController { + @Autowired + private ReviewInsertService reviewInsertService; + + private final String reviewImageUploadPath = "C:/Users/user/ysu/src/pages/img"; + + @PostMapping("/{menu_id}/review/write") + public ResponseEntity insertDataReview( + @RequestParam("review_writing") String review_writing, + @RequestParam("review_star") int review_star, + @RequestParam(value = "review_img" , required = false) MultipartFile review_img + ){ + try { + String fileReviewName = saveImage(review_img); + + ReviewDTO reviewDTO = new ReviewDTO(); + reviewDTO.setReview_writing(review_writing); + reviewDTO.setReview_star(review_star); + reviewDTO.setReview_img(fileReviewName); + + reviewInsertService.reviewInsert(reviewDTO); + return ResponseEntity.ok("Data successfully"); + } catch (Exception e){ + e.printStackTrace(); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body("Failed to insert data"); + } + } + private String saveImage(MultipartFile multipartFile) { + if(multipartFile != null){ + try { + String originalFileName = multipartFile.getOriginalFilename(); + String filePath = reviewImageUploadPath + File.separator + originalFileName; + File dest = new File(filePath); + multipartFile.transferTo(dest); + return originalFileName; + } catch (IOException e) { + e.printStackTrace(); + } + } + return null; + } + +} diff --git a/src/main/java/com/example/ysu/controller/SelectMenuController.java b/src/main/java/com/example/ysu/controller/SelectMenuController.java new file mode 100644 index 0000000..54b6581 --- /dev/null +++ b/src/main/java/com/example/ysu/controller/SelectMenuController.java @@ -0,0 +1,28 @@ +package com.example.ysu.controller; + +import com.example.ysu.model.dto.SelectMenuDTO; +import com.example.ysu.service.SelectMenuService; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + +@RequiredArgsConstructor +@RestController +public class SelectMenuController { + private final SelectMenuService selectMenuService; + + @GetMapping("/menu") + public List SelectMenuList(){ + return selectMenuService.SelectMenuList(); + } + + @GetMapping("/menu/{menuid}") + public SelectMenuDTO SelectMenuById(@PathVariable Long menuid) { + return selectMenuService.getMenuById(menuid); + } + + +} diff --git a/src/main/java/com/example/ysu/model/dao/JacksonConfig.java b/src/main/java/com/example/ysu/model/dao/JacksonConfig.java new file mode 100644 index 0000000..a1f4abd --- /dev/null +++ b/src/main/java/com/example/ysu/model/dao/JacksonConfig.java @@ -0,0 +1,20 @@ +package com.example.ysu.model.dao; + +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.SerializationFeature; +import com.fasterxml.jackson.databind.util.StdDateFormat; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +@Configuration +public class JacksonConfig { + + @Bean + public ObjectMapper objectMapper() { + ObjectMapper objectMapper = new ObjectMapper(); + objectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); + objectMapper.setDateFormat(new StdDateFormat().withColonInTimeZone(true)); + + return objectMapper; + } +} diff --git a/src/main/java/com/example/ysu/model/dao/ReviewDAO.java b/src/main/java/com/example/ysu/model/dao/ReviewDAO.java new file mode 100644 index 0000000..9a21cc0 --- /dev/null +++ b/src/main/java/com/example/ysu/model/dao/ReviewDAO.java @@ -0,0 +1,19 @@ +package com.example.ysu.model.dao; + +import com.example.ysu.model.dto.ReviewDTO; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.session.SqlSession; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import java.util.List; + +@Mapper +@Repository +public interface ReviewDAO { + void reviewInsert(ReviewDTO reviewDTO); + + List reviewList(int menu_id); + + void reviewDelete(int review_id); +} diff --git a/src/main/java/com/example/ysu/model/dao/ReviewInsertDAO.java b/src/main/java/com/example/ysu/model/dao/ReviewInsertDAO.java new file mode 100644 index 0000000..33aa33e --- /dev/null +++ b/src/main/java/com/example/ysu/model/dao/ReviewInsertDAO.java @@ -0,0 +1,17 @@ +package com.example.ysu.model.dao; + +import com.example.ysu.model.dto.ReviewDTO; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.session.SqlSession; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; +@Repository +@Mapper +public class ReviewInsertDAO { + @Autowired + private SqlSession sqlSession; + + public void reviewInsertData(ReviewDTO reviewDTO){ + sqlSession.insert("com.example.ysu.model.dao.ReviewDAO.reviewInsert", reviewDTO); + } +} diff --git a/src/main/java/com/example/ysu/model/dao/SelectMenuDAO.java b/src/main/java/com/example/ysu/model/dao/SelectMenuDAO.java new file mode 100644 index 0000000..4a9a5a0 --- /dev/null +++ b/src/main/java/com/example/ysu/model/dao/SelectMenuDAO.java @@ -0,0 +1,14 @@ +package com.example.ysu.model.dao; + +import com.example.ysu.model.dto.SelectMenuDTO; +import org.apache.ibatis.annotations.Mapper; +import org.springframework.stereotype.Repository; + +import java.util.List; + +@Repository +@Mapper +public interface SelectMenuDAO { + List SelectMenuList(); + SelectMenuDTO getMenuById(Long menuId); +} diff --git a/src/main/java/com/example/ysu/model/dto/ReviewDTO.java b/src/main/java/com/example/ysu/model/dto/ReviewDTO.java new file mode 100644 index 0000000..8b95b39 --- /dev/null +++ b/src/main/java/com/example/ysu/model/dto/ReviewDTO.java @@ -0,0 +1,28 @@ +package com.example.ysu.model.dto; +import lombok.*; +import java.util.Date; +@Setter +@Getter +@AllArgsConstructor +@NoArgsConstructor +public class ReviewDTO { + private String u_id; + + private String u_name; + + private Integer order_id; + + private Integer menu_id; + + private Integer review_id; + + private String review_writing; + + private Integer review_star; + + private Date review_time; + + private Integer review_regist; + + private String review_img; +} diff --git a/src/main/java/com/example/ysu/model/dto/SelectMenuDTO.java b/src/main/java/com/example/ysu/model/dto/SelectMenuDTO.java new file mode 100644 index 0000000..ee100bf --- /dev/null +++ b/src/main/java/com/example/ysu/model/dto/SelectMenuDTO.java @@ -0,0 +1,21 @@ +package com.example.ysu.model.dto; + +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; + +@Getter +@Setter +@NoArgsConstructor +@AllArgsConstructor +public class SelectMenuDTO { + private int menu_id; + private String menu_name; // 메뉴 이름 + private String menu_corner; // 코너 + private int menu_price; + private int menu_pack; // 포장 여부 + private String menu_image; // 음식 사진 + private int menu_sales; // 판매 가능 여부 + private int menu_regist; // 등록 여부 +} \ No newline at end of file diff --git a/src/main/java/com/example/ysu/model/dto/SignupDTO.java b/src/main/java/com/example/ysu/model/dto/SignupDTO.java new file mode 100644 index 0000000..30b9503 --- /dev/null +++ b/src/main/java/com/example/ysu/model/dto/SignupDTO.java @@ -0,0 +1,29 @@ +package com.example.ysu.model.dto; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.Pattern; + +@Data +public class SignupDTO { + @NotBlank(message = "이름을 입력해주세요.") + @Pattern(regexp="^[ㄱ-ㅎ가-힣a-z]{2,10}$", message = "숫자 또는 특수문자를 제외한 2자이상 입력해주세요.") + private String u_name; + + @NotBlank(message="학과는 필수 입력 값 입니다.") + @Pattern(regexp = "^[ㄱ-ㅎ가-힣a-z]{2,20}$", message = "숫자 또는 특수문자를 제외한 2자이상 입력해주세요.") + private String u_dept; + + + @NotBlank(message = "학번을 입력해주세요.") + @Pattern(regexp = "^[\\d]*$", message = "숫자만 입력해주세요") + private String u_id; + + @NotBlank(message = "비밀번호를 입력해주세요.") + @Pattern(regexp = "(?=.*[0-9])(?=.*[a-zA-Z]).{8,16}", message = "비밀번호는 8~16자 영문 대 소문자, 숫자, 특수문자를 사용하세요.") + private String u_pw; +} diff --git a/src/main/java/com/example/ysu/service/ReviewInsertService.java b/src/main/java/com/example/ysu/service/ReviewInsertService.java new file mode 100644 index 0000000..4f65104 --- /dev/null +++ b/src/main/java/com/example/ysu/service/ReviewInsertService.java @@ -0,0 +1,8 @@ +package com.example.ysu.service; + +import com.example.ysu.model.dto.ReviewDTO; +import org.springframework.stereotype.Service; +@Service +public interface ReviewInsertService { + void reviewInsert(ReviewDTO reviewDTO); +} diff --git a/src/main/java/com/example/ysu/service/ReviewInsertServiceImpl.java b/src/main/java/com/example/ysu/service/ReviewInsertServiceImpl.java new file mode 100644 index 0000000..11eaf18 --- /dev/null +++ b/src/main/java/com/example/ysu/service/ReviewInsertServiceImpl.java @@ -0,0 +1,21 @@ +package com.example.ysu.service; + +import com.example.ysu.model.dao.ReviewInsertDAO; +import com.example.ysu.model.dto.ReviewDTO; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +@Service +public class ReviewInsertServiceImpl implements ReviewInsertService{ + private final ReviewInsertDAO reviewInsertDAO; + + @Autowired + public ReviewInsertServiceImpl(ReviewInsertDAO reviewInsertDAO){ + this.reviewInsertDAO=reviewInsertDAO; + } + + @Override + public void reviewInsert(ReviewDTO reviewDTO) { + reviewInsertDAO.reviewInsertData(reviewDTO); + } +} diff --git a/src/main/java/com/example/ysu/service/ReviewService.java b/src/main/java/com/example/ysu/service/ReviewService.java new file mode 100644 index 0000000..aa9805f --- /dev/null +++ b/src/main/java/com/example/ysu/service/ReviewService.java @@ -0,0 +1,11 @@ +package com.example.ysu.service; + +import com.example.ysu.model.dto.ReviewDTO; + +import java.util.List; + +public interface ReviewService { + List reviewList(int menu_id); + + void reviewDelete(int review_id); +} diff --git a/src/main/java/com/example/ysu/service/ReviewServiceImpl.java b/src/main/java/com/example/ysu/service/ReviewServiceImpl.java new file mode 100644 index 0000000..32bc435 --- /dev/null +++ b/src/main/java/com/example/ysu/service/ReviewServiceImpl.java @@ -0,0 +1,24 @@ +package com.example.ysu.service; +import com.example.ysu.model.dao.ReviewDAO; +import com.example.ysu.model.dao.ReviewInsertDAO; +import com.example.ysu.model.dto.ReviewDTO; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import java.util.List; + +@Service +public class ReviewServiceImpl implements ReviewService { + @Autowired + private ReviewDAO reviewDAO; + private ReviewInsertDAO reviewInsertDAO; + + @Override + public List reviewList(int menu_id) { + return reviewDAO.reviewList(menu_id); + } + + @Override + public void reviewDelete(int review_id) { + reviewDAO.reviewDelete(review_id); + } +} diff --git a/src/main/java/com/example/ysu/service/SelectMenuService.java b/src/main/java/com/example/ysu/service/SelectMenuService.java new file mode 100644 index 0000000..5a47f95 --- /dev/null +++ b/src/main/java/com/example/ysu/service/SelectMenuService.java @@ -0,0 +1,11 @@ +package com.example.ysu.service; + +import com.example.ysu.model.dto.SelectMenuDTO; + +import java.util.List; + +public interface SelectMenuService { + public List SelectMenuList(); + SelectMenuDTO getMenuById(Long menuId); + +} diff --git a/src/main/java/com/example/ysu/service/SelectMenuServiceImpl.java b/src/main/java/com/example/ysu/service/SelectMenuServiceImpl.java new file mode 100644 index 0000000..4ea06be --- /dev/null +++ b/src/main/java/com/example/ysu/service/SelectMenuServiceImpl.java @@ -0,0 +1,26 @@ +package com.example.ysu.service; + +import com.example.ysu.model.dao.SelectMenuDAO; +import com.example.ysu.model.dao.SelectMenuDAO; +import com.example.ysu.model.dto.SelectMenuDTO; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service +@RequiredArgsConstructor +public class SelectMenuServiceImpl implements SelectMenuService { + private final SelectMenuDAO selectMenuDAO; + + @Override + public List SelectMenuList() { + + return selectMenuDAO.SelectMenuList(); + } + + @Override + public SelectMenuDTO getMenuById(Long menuId) { + return selectMenuDAO.getMenuById(menuId); + } +} diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties new file mode 100644 index 0000000..825f2b3 --- /dev/null +++ b/src/main/resources/application.properties @@ -0,0 +1,13 @@ +# database +spring.datasource.url: jdbc:mysql://localhost:3306/ysu?characterEncoding=utf8 +spring.datasource.username: root +spring.datasource.password: 1234 +spring.datasource.driver-class-name: com.mysql.cj.jdbc.Driver + +# mybatis +mybatis.config=mybatis-config.xml +mybatis.type-aliases-package: com.example.demo.model +mybatis.mapper-locations: mybatis/mapper/*.xml + +spring.servlet.multipart.max-file-size=10MB +spring.servlet.multipart.max-request-size=10MB \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/ReviewMapper.xml b/src/main/resources/mybatis/mapper/ReviewMapper.xml new file mode 100644 index 0000000..34fbda2 --- /dev/null +++ b/src/main/resources/mybatis/mapper/ReviewMapper.xml @@ -0,0 +1,29 @@ + + + + + + + + + INSERT INTO review (u_id, u_name, order_id, menu_id, review_writing, review_star, review_time, review_regist, review_img) + SELECT u.u_id, u.u_name, od.order_id, od.menu_id, #{review_writing}, #{review_star}, NOW() as review_time, 1, #{review_img} + FROM orders o + INNER JOIN orderdetail od ON o.order_id = od.order_id + INNER JOIN menu m ON od.menu_id = m.menu_id + INNER JOIN users u ON u.u_id = od.u_id + + + WHERE od.u_id ='2023200014' AND od.order_id=5 AND od.menu_id=5; + + + + DELETE FROM REVIEW WHERE review_id=#{review_id}; + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/SelectMenuMapper.xml b/src/main/resources/mybatis/mapper/SelectMenuMapper.xml new file mode 100644 index 0000000..a445eb8 --- /dev/null +++ b/src/main/resources/mybatis/mapper/SelectMenuMapper.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mybatis-config.xml b/src/main/resources/mybatis/mybatis-config.xml new file mode 100644 index 0000000..90d73a4 --- /dev/null +++ b/src/main/resources/mybatis/mybatis-config.xml @@ -0,0 +1,11 @@ + + + + + + + + + + \ No newline at end of file diff --git a/src/test/java/com/example/ysu/YsuApplicationTests.java b/src/test/java/com/example/ysu/YsuApplicationTests.java new file mode 100644 index 0000000..c187929 --- /dev/null +++ b/src/test/java/com/example/ysu/YsuApplicationTests.java @@ -0,0 +1,13 @@ +package com.example.ysu; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class YsuApplicationTests { + + @Test + void contextLoads() { + } + +}