diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ad8b31f --- /dev/null +++ b/.gitignore @@ -0,0 +1,117 @@ +HELP.md +.gradle +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/ + +## Config file +/src/main/resources/*.yaml +/src/main/resources/*.yml + +### Linux ### +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + +### macOS ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### macOS Patch ### +# iCloud generated files +*.icloud + +### Windows ### +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +log/ \ No newline at end of file diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..36d54cd --- /dev/null +++ b/build.gradle @@ -0,0 +1,35 @@ +plugins { + id 'org.springframework.boot' version '2.5.3' + id 'io.spring.dependency-management' version '1.0.11.RELEASE' + id 'java' +} + +group = 'com.server' +version = '0.0.1-SNAPSHOT' +sourceCompatibility = '11' + +configurations { + compileOnly { + extendsFrom annotationProcessor + } +} + +repositories { + mavenCentral() +} + +dependencies { + implementation 'org.springframework.boot:spring-boot-starter-data-jpa' + implementation 'org.springframework.boot:spring-boot-starter-web' + implementation 'io.springfox:springfox-boot-starter:3.0.0' + implementation 'ca.pjer:logback-awslogs-appender:1.6.0' + compileOnly 'org.projectlombok:lombok' + runtimeOnly 'com.h2database:h2' + runtimeOnly 'mysql:mysql-connector-java' + annotationProcessor 'org.projectlombok:lombok' + testImplementation 'org.springframework.boot:spring-boot-starter-test' +} + +tasks.named('test') { + useJUnitPlatform() +} diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..249e583 Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..8049c68 --- /dev/null +++ b/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-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew new file mode 100755 index 0000000..a69d9cb --- /dev/null +++ b/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/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..53a6b23 --- /dev/null +++ b/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/settings.gradle b/settings.gradle new file mode 100644 index 0000000..8bebd46 --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +rootProject.name = 'hispath' diff --git a/src/main/java/com/server/hispath/HispathApplication.java b/src/main/java/com/server/hispath/HispathApplication.java new file mode 100644 index 0000000..e2d77f7 --- /dev/null +++ b/src/main/java/com/server/hispath/HispathApplication.java @@ -0,0 +1,13 @@ +package com.server.hispath; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class HispathApplication { + + public static void main(String[] args) { + SpringApplication.run(HispathApplication.class, args); + } + +} diff --git a/src/main/java/com/server/hispath/activity/application/ActivityService.java b/src/main/java/com/server/hispath/activity/application/ActivityService.java new file mode 100644 index 0000000..e1fa9db --- /dev/null +++ b/src/main/java/com/server/hispath/activity/application/ActivityService.java @@ -0,0 +1,15 @@ +package com.server.hispath.activity.application; + +import com.server.hispath.activity.domain.repository.ActivityRepository; + +import org.springframework.stereotype.Service; + +import lombok.RequiredArgsConstructor; + +@Service +@RequiredArgsConstructor +public class ActivityService { + + private final ActivityRepository activityRepository; + +} diff --git a/src/main/java/com/server/hispath/activity/domain/Activity.java b/src/main/java/com/server/hispath/activity/domain/Activity.java new file mode 100644 index 0000000..4ee2322 --- /dev/null +++ b/src/main/java/com/server/hispath/activity/domain/Activity.java @@ -0,0 +1,40 @@ +package com.server.hispath.activity.domain; + +import java.util.ArrayList; +import java.util.List; +import javax.persistence.*; + +import com.server.hispath.category.domain.Category; +import com.server.hispath.common.BaseEntity; +import com.server.hispath.student.domain.participate.Participant; + +import lombok.Getter; +import lombok.NoArgsConstructor; +import org.hibernate.annotations.SQLDelete; +import org.hibernate.annotations.Where; + +@Entity +@Getter +@NoArgsConstructor +@Where(clause = "deleted = false") +@SQLDelete(sql = "UPDATE activity SET deleted = true Where id = ?") +public class Activity extends BaseEntity { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + + @ManyToOne(fetch = FetchType.LAZY) + private Category category; + + private String semester; + + private boolean personel; + + private int requestStatus; + + private String date; + + @OneToMany(mappedBy = "activity") + private List participants = new ArrayList<>(); +} diff --git a/src/main/java/com/server/hispath/activity/domain/ActivityType.java b/src/main/java/com/server/hispath/activity/domain/ActivityType.java new file mode 100644 index 0000000..1861c09 --- /dev/null +++ b/src/main/java/com/server/hispath/activity/domain/ActivityType.java @@ -0,0 +1,5 @@ +package com.server.hispath.activity.domain; + +public enum ActivityType { + MILEAGE_ACTIVITY, PROJECT +} diff --git a/src/main/java/com/server/hispath/activity/domain/repository/ActivityRepository.java b/src/main/java/com/server/hispath/activity/domain/repository/ActivityRepository.java new file mode 100644 index 0000000..cf2eb91 --- /dev/null +++ b/src/main/java/com/server/hispath/activity/domain/repository/ActivityRepository.java @@ -0,0 +1,8 @@ +package com.server.hispath.activity.domain.repository; + +import com.server.hispath.activity.domain.Activity; + +import org.springframework.data.jpa.repository.JpaRepository; + +public interface ActivityRepository extends JpaRepository { +} diff --git a/src/main/java/com/server/hispath/activity/presentation/ActivityController.java b/src/main/java/com/server/hispath/activity/presentation/ActivityController.java new file mode 100644 index 0000000..93d5630 --- /dev/null +++ b/src/main/java/com/server/hispath/activity/presentation/ActivityController.java @@ -0,0 +1,13 @@ +package com.server.hispath.activity.presentation; + +import com.server.hispath.activity.application.ActivityService; + +import org.springframework.web.bind.annotation.RestController; + +import lombok.RequiredArgsConstructor; + +@RestController +@RequiredArgsConstructor +public class ActivityController { + private final ActivityService activityService; +} diff --git a/src/main/java/com/server/hispath/category/application/CategoryService.java b/src/main/java/com/server/hispath/category/application/CategoryService.java new file mode 100644 index 0000000..55c0bb1 --- /dev/null +++ b/src/main/java/com/server/hispath/category/application/CategoryService.java @@ -0,0 +1,15 @@ +package com.server.hispath.category.application; + +import com.server.hispath.category.domain.repository.CategoryRepository; + +import org.springframework.stereotype.Service; + +import lombok.RequiredArgsConstructor; + +@Service +@RequiredArgsConstructor +public class CategoryService { + + private final CategoryRepository categoryRepository; + +} diff --git a/src/main/java/com/server/hispath/category/domain/Category.java b/src/main/java/com/server/hispath/category/domain/Category.java new file mode 100644 index 0000000..15e0130 --- /dev/null +++ b/src/main/java/com/server/hispath/category/domain/Category.java @@ -0,0 +1,34 @@ +package com.server.hispath.category.domain; + +import java.util.ArrayList; +import java.util.List; +import javax.persistence.*; + +import com.server.hispath.activity.domain.Activity; +import com.server.hispath.activity.domain.ActivityType; +import com.server.hispath.common.BaseEntity; + +import lombok.Getter; +import lombok.NoArgsConstructor; +import org.hibernate.annotations.SQLDelete; +import org.hibernate.annotations.Where; + +@Entity +@Getter +@NoArgsConstructor +@Where(clause = "deleted = false") +@SQLDelete(sql = "UPDATE category SET deleted = true Where id = ?") +public class Category extends BaseEntity { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + + private String name; + + @OneToMany(mappedBy = "category") + private List activities = new ArrayList<>(); + + @Enumerated(EnumType.STRING) + private ActivityType type; +} diff --git a/src/main/java/com/server/hispath/category/domain/repository/CategoryRepository.java b/src/main/java/com/server/hispath/category/domain/repository/CategoryRepository.java new file mode 100644 index 0000000..deffb0a --- /dev/null +++ b/src/main/java/com/server/hispath/category/domain/repository/CategoryRepository.java @@ -0,0 +1,8 @@ +package com.server.hispath.category.domain.repository; + +import com.server.hispath.category.domain.Category; + +import org.springframework.data.jpa.repository.JpaRepository; + +public interface CategoryRepository extends JpaRepository { +} diff --git a/src/main/java/com/server/hispath/category/presentation/CategoryController.java b/src/main/java/com/server/hispath/category/presentation/CategoryController.java new file mode 100644 index 0000000..155c23b --- /dev/null +++ b/src/main/java/com/server/hispath/category/presentation/CategoryController.java @@ -0,0 +1,14 @@ +package com.server.hispath.category.presentation; + +import com.server.hispath.category.application.CategoryService; + +import org.springframework.web.bind.annotation.RestController; + +import lombok.RequiredArgsConstructor; + +@RestController +@RequiredArgsConstructor +public class CategoryController { + + private final CategoryService categoryService; +} diff --git a/src/main/java/com/server/hispath/common/BaseEntity.java b/src/main/java/com/server/hispath/common/BaseEntity.java new file mode 100644 index 0000000..9b2e33f --- /dev/null +++ b/src/main/java/com/server/hispath/common/BaseEntity.java @@ -0,0 +1,34 @@ +package com.server.hispath.common; + + +import java.time.LocalDateTime; +import javax.persistence.EntityListeners; +import javax.persistence.MappedSuperclass; + +import org.springframework.data.annotation.CreatedDate; +import org.springframework.data.annotation.LastModifiedDate; +import org.springframework.data.jpa.domain.support.AuditingEntityListener; + +import lombok.Getter; +import lombok.NoArgsConstructor; + +@Getter +@MappedSuperclass +@NoArgsConstructor +@EntityListeners(AuditingEntityListener.class) +public abstract class BaseEntity { + + @CreatedDate + private LocalDateTime createdAt; + + @LastModifiedDate + private LocalDateTime updatedAt; + + private boolean deleted = Boolean.FALSE; + + public void deleteContent() { + deleted = true; + } + + +} diff --git a/src/main/java/com/server/hispath/config/SwaggerConfig.java b/src/main/java/com/server/hispath/config/SwaggerConfig.java new file mode 100644 index 0000000..a34c3ae --- /dev/null +++ b/src/main/java/com/server/hispath/config/SwaggerConfig.java @@ -0,0 +1,33 @@ +package com.server.hispath.config; + +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +import springfox.documentation.builders.ApiInfoBuilder; +import springfox.documentation.builders.PathSelectors; +import springfox.documentation.builders.RequestHandlerSelectors; +import springfox.documentation.service.ApiInfo; +import springfox.documentation.spi.DocumentationType; +import springfox.documentation.spring.web.plugins.Docket; + +@Configuration +public class SwaggerConfig { + @Bean + public Docket api() { + return new Docket(DocumentationType.OAS_30) + .useDefaultResponseMessages(false) + .select() + .apis(RequestHandlerSelectors.any()) + .paths(PathSelectors.ant("/api/**")) + .build() + .apiInfo(apiInfo()); + } + + private ApiInfo apiInfo() { + return new ApiInfoBuilder() + .title("HisPath Swagger") + .description("HisPath") + .version("1.0") + .build(); + } +} diff --git a/src/main/java/com/server/hispath/docs/ApiDoc.java b/src/main/java/com/server/hispath/docs/ApiDoc.java new file mode 100644 index 0000000..0e1188e --- /dev/null +++ b/src/main/java/com/server/hispath/docs/ApiDoc.java @@ -0,0 +1,13 @@ +package com.server.hispath.docs; + +public class ApiDoc { + + + /* Student 관련 API 명세 */ + + + /* Activity 관련 API 명세 */ + + /* Category 관련 API 명세 */ + +} \ No newline at end of file diff --git a/src/main/java/com/server/hispath/exception/ExceptionResponse.java b/src/main/java/com/server/hispath/exception/ExceptionResponse.java new file mode 100644 index 0000000..63709f8 --- /dev/null +++ b/src/main/java/com/server/hispath/exception/ExceptionResponse.java @@ -0,0 +1,12 @@ +package com.server.hispath.exception; + +import lombok.Getter; + +@Getter +public class ExceptionResponse { + private final String message; + + public ExceptionResponse(String message) { + this.message = message; + } +} diff --git a/src/main/java/com/server/hispath/exception/GlobalExceptionHandler.java b/src/main/java/com/server/hispath/exception/GlobalExceptionHandler.java new file mode 100644 index 0000000..d2d92ed --- /dev/null +++ b/src/main/java/com/server/hispath/exception/GlobalExceptionHandler.java @@ -0,0 +1,15 @@ +package com.server.hispath.exception; + +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.ControllerAdvice; +import org.springframework.web.bind.annotation.ExceptionHandler; + +@ControllerAdvice +public class GlobalExceptionHandler { + + @ExceptionHandler(HisPathException.class) + public ResponseEntity hisPathException(HisPathException e) { + return ResponseEntity.status(e.getHttpStatus()) + .body(new ExceptionResponse(e.getMessage())); + } +} diff --git a/src/main/java/com/server/hispath/exception/HisPathException.java b/src/main/java/com/server/hispath/exception/HisPathException.java new file mode 100644 index 0000000..d6d9b39 --- /dev/null +++ b/src/main/java/com/server/hispath/exception/HisPathException.java @@ -0,0 +1,16 @@ +package com.server.hispath.exception; + +import org.springframework.http.HttpStatus; + +public class HisPathException extends RuntimeException{ + private final HttpStatus httpStatus; + + public HisPathException(String message, HttpStatus httpStatus){ + super(message); + this.httpStatus = httpStatus; + } + + public HttpStatus getHttpStatus() { + return httpStatus; + } +} diff --git a/src/main/java/com/server/hispath/exception/activity/ActivityException.java b/src/main/java/com/server/hispath/exception/activity/ActivityException.java new file mode 100644 index 0000000..e5e13be --- /dev/null +++ b/src/main/java/com/server/hispath/exception/activity/ActivityException.java @@ -0,0 +1,11 @@ +package com.server.hispath.exception.activity; + +import com.server.hispath.exception.HisPathException; + +import org.springframework.http.HttpStatus; + +public class ActivityException extends HisPathException { + protected ActivityException(String message, HttpStatus httpStatus) { + super(message, httpStatus); + } +} diff --git a/src/main/java/com/server/hispath/exception/activity/ActivityNotFoundException.java b/src/main/java/com/server/hispath/exception/activity/ActivityNotFoundException.java new file mode 100644 index 0000000..0ca6077 --- /dev/null +++ b/src/main/java/com/server/hispath/exception/activity/ActivityNotFoundException.java @@ -0,0 +1,9 @@ +package com.server.hispath.exception.activity; + +import org.springframework.http.HttpStatus; + +public class ActivityNotFoundException extends ActivityException { + public ActivityNotFoundException() { + super("존재하지 않는 활동입니다.", HttpStatus.BAD_REQUEST); + } +} diff --git a/src/main/java/com/server/hispath/exception/category/CategoryException.java b/src/main/java/com/server/hispath/exception/category/CategoryException.java new file mode 100644 index 0000000..be6e934 --- /dev/null +++ b/src/main/java/com/server/hispath/exception/category/CategoryException.java @@ -0,0 +1,11 @@ +package com.server.hispath.exception.category; + +import com.server.hispath.exception.HisPathException; + +import org.springframework.http.HttpStatus; + +public class CategoryException extends HisPathException { + protected CategoryException(String message, HttpStatus httpStatus) { + super(message, httpStatus); + } +} diff --git a/src/main/java/com/server/hispath/exception/category/CategoryNotFoundException.java b/src/main/java/com/server/hispath/exception/category/CategoryNotFoundException.java new file mode 100644 index 0000000..9512ca1 --- /dev/null +++ b/src/main/java/com/server/hispath/exception/category/CategoryNotFoundException.java @@ -0,0 +1,9 @@ +package com.server.hispath.exception.category; + +import org.springframework.http.HttpStatus; + +public class CategoryNotFoundException extends CategoryException { + public CategoryNotFoundException() { + super("존재하지 않는 카테고리입니다.", HttpStatus.BAD_REQUEST); + } +} diff --git a/src/main/java/com/server/hispath/exception/major/MajorException.java b/src/main/java/com/server/hispath/exception/major/MajorException.java new file mode 100644 index 0000000..30eaee0 --- /dev/null +++ b/src/main/java/com/server/hispath/exception/major/MajorException.java @@ -0,0 +1,11 @@ +package com.server.hispath.exception.major; + +import com.server.hispath.exception.HisPathException; + +import org.springframework.http.HttpStatus; + +public class MajorException extends HisPathException { + protected MajorException(String message, HttpStatus httpStatus) { + super(message, httpStatus); + } +} diff --git a/src/main/java/com/server/hispath/exception/major/MajorNotFoundException.java b/src/main/java/com/server/hispath/exception/major/MajorNotFoundException.java new file mode 100644 index 0000000..ea6b9fd --- /dev/null +++ b/src/main/java/com/server/hispath/exception/major/MajorNotFoundException.java @@ -0,0 +1,9 @@ +package com.server.hispath.exception.major; + +import org.springframework.http.HttpStatus; + +public class MajorNotFoundException extends MajorException { + public MajorNotFoundException() { + super("존재하지 않는 전공입니다.", HttpStatus.BAD_REQUEST); + } +} diff --git a/src/main/java/com/server/hispath/exception/manager/ManagerException.java b/src/main/java/com/server/hispath/exception/manager/ManagerException.java new file mode 100644 index 0000000..e994378 --- /dev/null +++ b/src/main/java/com/server/hispath/exception/manager/ManagerException.java @@ -0,0 +1,11 @@ +package com.server.hispath.exception.manager; + +import com.server.hispath.exception.HisPathException; + +import org.springframework.http.HttpStatus; + +public class ManagerException extends HisPathException { + protected ManagerException(String message, HttpStatus httpStatus) { + super(message, httpStatus); + } +} diff --git a/src/main/java/com/server/hispath/exception/manager/ManagerNotFoundException.java b/src/main/java/com/server/hispath/exception/manager/ManagerNotFoundException.java new file mode 100644 index 0000000..20d1ec2 --- /dev/null +++ b/src/main/java/com/server/hispath/exception/manager/ManagerNotFoundException.java @@ -0,0 +1,9 @@ +package com.server.hispath.exception.manager; + +import org.springframework.http.HttpStatus; + +public class ManagerNotFoundException extends ManagerException { + public ManagerNotFoundException() { + super("존재하지 않는 관리자입니다.", HttpStatus.BAD_REQUEST); + } +} diff --git a/src/main/java/com/server/hispath/exception/notice/NoticeException.java b/src/main/java/com/server/hispath/exception/notice/NoticeException.java new file mode 100644 index 0000000..f12dad1 --- /dev/null +++ b/src/main/java/com/server/hispath/exception/notice/NoticeException.java @@ -0,0 +1,11 @@ +package com.server.hispath.exception.notice; + +import com.server.hispath.exception.HisPathException; + +import org.springframework.http.HttpStatus; + +public class NoticeException extends HisPathException { + protected NoticeException(String message, HttpStatus httpStatus) { + super(message, httpStatus); + } +} diff --git a/src/main/java/com/server/hispath/exception/notice/NoticeNotFoundException.java b/src/main/java/com/server/hispath/exception/notice/NoticeNotFoundException.java new file mode 100644 index 0000000..7c8b991 --- /dev/null +++ b/src/main/java/com/server/hispath/exception/notice/NoticeNotFoundException.java @@ -0,0 +1,9 @@ +package com.server.hispath.exception.notice; + +import org.springframework.http.HttpStatus; + +public class NoticeNotFoundException extends NoticeException { + public NoticeNotFoundException() { + super("존재하지 않는 공지입니다.", HttpStatus.BAD_REQUEST); + } +} diff --git a/src/main/java/com/server/hispath/exception/student/StudentException.java b/src/main/java/com/server/hispath/exception/student/StudentException.java new file mode 100644 index 0000000..1e96c76 --- /dev/null +++ b/src/main/java/com/server/hispath/exception/student/StudentException.java @@ -0,0 +1,11 @@ +package com.server.hispath.exception.student; + +import com.server.hispath.exception.HisPathException; + +import org.springframework.http.HttpStatus; + +public class StudentException extends HisPathException { + protected StudentException(String message, HttpStatus httpStatus) { + super(message, httpStatus); + } +} diff --git a/src/main/java/com/server/hispath/exception/student/StudentNotFoundException.java b/src/main/java/com/server/hispath/exception/student/StudentNotFoundException.java new file mode 100644 index 0000000..f2de707 --- /dev/null +++ b/src/main/java/com/server/hispath/exception/student/StudentNotFoundException.java @@ -0,0 +1,9 @@ +package com.server.hispath.exception.student; + +import org.springframework.http.HttpStatus; + +public class StudentNotFoundException extends StudentException{ + public StudentNotFoundException() { + super("존재하지 않는 학생입니다.", HttpStatus.BAD_REQUEST); + } +} diff --git a/src/main/java/com/server/hispath/major/application/MajorService.java b/src/main/java/com/server/hispath/major/application/MajorService.java new file mode 100644 index 0000000..d22fe4e --- /dev/null +++ b/src/main/java/com/server/hispath/major/application/MajorService.java @@ -0,0 +1,15 @@ +package com.server.hispath.major.application; + +import com.server.hispath.major.domain.repository.MajorRepository; + +import org.springframework.stereotype.Service; + +import lombok.RequiredArgsConstructor; + +@Service +@RequiredArgsConstructor +public class MajorService { + + private final MajorRepository majorRepository; + +} diff --git a/src/main/java/com/server/hispath/major/domain/Major.java b/src/main/java/com/server/hispath/major/domain/Major.java new file mode 100644 index 0000000..d827c20 --- /dev/null +++ b/src/main/java/com/server/hispath/major/domain/Major.java @@ -0,0 +1,27 @@ +package com.server.hispath.major.domain; + +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; +import javax.persistence.Id; + +import com.server.hispath.common.BaseEntity; + +import lombok.Getter; +import lombok.NoArgsConstructor; +import org.hibernate.annotations.SQLDelete; +import org.hibernate.annotations.Where; + +@Entity +@Getter +@NoArgsConstructor +@Where(clause = "deleted = false") +@SQLDelete(sql = "UPDATE major SET deleted = true Where id = ?") +public class Major extends BaseEntity { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + + private String name; +} diff --git a/src/main/java/com/server/hispath/major/domain/repository/MajorRepository.java b/src/main/java/com/server/hispath/major/domain/repository/MajorRepository.java new file mode 100644 index 0000000..ed31101 --- /dev/null +++ b/src/main/java/com/server/hispath/major/domain/repository/MajorRepository.java @@ -0,0 +1,8 @@ +package com.server.hispath.major.domain.repository; + +import com.server.hispath.major.domain.Major; + +import org.springframework.data.jpa.repository.JpaRepository; + +public interface MajorRepository extends JpaRepository { +} diff --git a/src/main/java/com/server/hispath/major/presentation/MajorController.java b/src/main/java/com/server/hispath/major/presentation/MajorController.java new file mode 100644 index 0000000..0a8d5ca --- /dev/null +++ b/src/main/java/com/server/hispath/major/presentation/MajorController.java @@ -0,0 +1,14 @@ +package com.server.hispath.major.presentation; + +import com.server.hispath.major.application.MajorService; + +import org.springframework.web.bind.annotation.RestController; + +import lombok.RequiredArgsConstructor; + +@RestController +@RequiredArgsConstructor +public class MajorController { + + private final MajorService majorService; +} diff --git a/src/main/java/com/server/hispath/manager/application/ManagerService.java b/src/main/java/com/server/hispath/manager/application/ManagerService.java new file mode 100644 index 0000000..21f8313 --- /dev/null +++ b/src/main/java/com/server/hispath/manager/application/ManagerService.java @@ -0,0 +1,15 @@ +package com.server.hispath.manager.application; + +import com.server.hispath.manager.domain.repository.ManagerRepository; + +import org.springframework.stereotype.Service; + +import lombok.RequiredArgsConstructor; + +@Service +@RequiredArgsConstructor +public class ManagerService { + + private final ManagerRepository managerRepository; + +} diff --git a/src/main/java/com/server/hispath/manager/domain/Manager.java b/src/main/java/com/server/hispath/manager/domain/Manager.java new file mode 100644 index 0000000..41a597c --- /dev/null +++ b/src/main/java/com/server/hispath/manager/domain/Manager.java @@ -0,0 +1,34 @@ +package com.server.hispath.manager.domain; + +import java.util.ArrayList; +import java.util.List; +import javax.persistence.*; + +import com.server.hispath.common.BaseEntity; +import com.server.hispath.notice.domain.Notice; + +import lombok.Getter; +import lombok.NoArgsConstructor; +import org.hibernate.annotations.SQLDelete; +import org.hibernate.annotations.Where; + +@Entity +@Getter +@NoArgsConstructor +@Where(clause = "deleted = false") +@SQLDelete(sql = "UPDATE manager SET deleted = true Where id = ?") +public class Manager extends BaseEntity { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + + @OneToMany(mappedBy = "writer") + private List notices = new ArrayList<>(); + + private String name; + + private String email; + + private String department; +} diff --git a/src/main/java/com/server/hispath/manager/domain/repository/ManagerRepository.java b/src/main/java/com/server/hispath/manager/domain/repository/ManagerRepository.java new file mode 100644 index 0000000..d4abd84 --- /dev/null +++ b/src/main/java/com/server/hispath/manager/domain/repository/ManagerRepository.java @@ -0,0 +1,8 @@ +package com.server.hispath.manager.domain.repository; + +import com.server.hispath.manager.domain.Manager; + +import org.springframework.data.jpa.repository.JpaRepository; + +public interface ManagerRepository extends JpaRepository { +} diff --git a/src/main/java/com/server/hispath/manager/presentation/ManagerController.java b/src/main/java/com/server/hispath/manager/presentation/ManagerController.java new file mode 100644 index 0000000..06af748 --- /dev/null +++ b/src/main/java/com/server/hispath/manager/presentation/ManagerController.java @@ -0,0 +1,14 @@ +package com.server.hispath.manager.presentation; + +import com.server.hispath.manager.application.ManagerService; + +import org.springframework.web.bind.annotation.RestController; + +import lombok.RequiredArgsConstructor; + +@RestController +@RequiredArgsConstructor +public class ManagerController { + + private final ManagerService managerService; +} diff --git a/src/main/java/com/server/hispath/notice/application/NoticeService.java b/src/main/java/com/server/hispath/notice/application/NoticeService.java new file mode 100644 index 0000000..cf5a47d --- /dev/null +++ b/src/main/java/com/server/hispath/notice/application/NoticeService.java @@ -0,0 +1,15 @@ +package com.server.hispath.notice.application; + +import com.server.hispath.notice.domain.repository.NoticeRepository; + +import org.springframework.stereotype.Service; + +import lombok.RequiredArgsConstructor; + +@Service +@RequiredArgsConstructor +public class NoticeService { + + private final NoticeRepository noticeRepository; + +} diff --git a/src/main/java/com/server/hispath/notice/domain/Notice.java b/src/main/java/com/server/hispath/notice/domain/Notice.java new file mode 100644 index 0000000..5f502c8 --- /dev/null +++ b/src/main/java/com/server/hispath/notice/domain/Notice.java @@ -0,0 +1,34 @@ +package com.server.hispath.notice.domain; + +import javax.persistence.*; + +import com.server.hispath.manager.domain.Manager; +import com.server.hispath.common.BaseEntity; + +import lombok.Getter; +import lombok.NoArgsConstructor; +import org.hibernate.annotations.SQLDelete; +import org.hibernate.annotations.Where; + +@Entity +@Getter +@NoArgsConstructor +@Where(clause = "deleted = false") +@SQLDelete(sql = "UPDATE notice SET deleted = true Where id = ?") +public class Notice extends BaseEntity { + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + + @ManyToOne(fetch = FetchType.LAZY) + private Manager writer; + + private String title; + + private String content; + + private int viewCnt; + + private boolean importance; + +} diff --git a/src/main/java/com/server/hispath/notice/domain/repository/NoticeRepository.java b/src/main/java/com/server/hispath/notice/domain/repository/NoticeRepository.java new file mode 100644 index 0000000..6ea7914 --- /dev/null +++ b/src/main/java/com/server/hispath/notice/domain/repository/NoticeRepository.java @@ -0,0 +1,8 @@ +package com.server.hispath.notice.domain.repository; + +import com.server.hispath.notice.domain.Notice; + +import org.springframework.data.jpa.repository.JpaRepository; + +public interface NoticeRepository extends JpaRepository { +} diff --git a/src/main/java/com/server/hispath/notice/presentation/NoticeController.java b/src/main/java/com/server/hispath/notice/presentation/NoticeController.java new file mode 100644 index 0000000..7e855dc --- /dev/null +++ b/src/main/java/com/server/hispath/notice/presentation/NoticeController.java @@ -0,0 +1,14 @@ +package com.server.hispath.notice.presentation; + +import com.server.hispath.notice.application.NoticeService; + +import org.springframework.web.bind.annotation.RestController; + +import lombok.RequiredArgsConstructor; + +@RestController +@RequiredArgsConstructor +public class NoticeController { + + private final NoticeService noticeService; +} diff --git a/src/main/java/com/server/hispath/scholarship/domain/Scholarship.java b/src/main/java/com/server/hispath/scholarship/domain/Scholarship.java new file mode 100644 index 0000000..73d4786 --- /dev/null +++ b/src/main/java/com/server/hispath/scholarship/domain/Scholarship.java @@ -0,0 +1,24 @@ +package com.server.hispath.scholarship.domain; + +import javax.persistence.*; + +import com.server.hispath.common.BaseEntity; + +import lombok.Getter; +import lombok.NoArgsConstructor; +import org.hibernate.annotations.SQLDelete; +import org.hibernate.annotations.Where; + +@Entity +@Getter +@NoArgsConstructor +@Where(clause = "deleted = false") +@SQLDelete(sql = "UPDATE scholarShip SET deleted = true Where id = ?") +public class Scholarship extends BaseEntity { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + + //ToDO : 나중 구현 예정 +} diff --git a/src/main/java/com/server/hispath/student/application/StudentService.java b/src/main/java/com/server/hispath/student/application/StudentService.java new file mode 100644 index 0000000..42bde8f --- /dev/null +++ b/src/main/java/com/server/hispath/student/application/StudentService.java @@ -0,0 +1,15 @@ +package com.server.hispath.student.application; + +import com.server.hispath.student.domain.repository.StudentRepository; + +import org.springframework.stereotype.Service; + +import lombok.RequiredArgsConstructor; + +@Service +@RequiredArgsConstructor +public class StudentService { + + private final StudentRepository studentRepository; + +} diff --git a/src/main/java/com/server/hispath/student/domain/Student.java b/src/main/java/com/server/hispath/student/domain/Student.java new file mode 100644 index 0000000..c40ba18 --- /dev/null +++ b/src/main/java/com/server/hispath/student/domain/Student.java @@ -0,0 +1,54 @@ +package com.server.hispath.student.domain; + +import java.time.LocalDateTime; +import java.util.ArrayList; +import java.util.List; +import javax.persistence.*; + +import com.server.hispath.common.BaseEntity; +import com.server.hispath.major.domain.Major; +import com.server.hispath.student.domain.participate.Participant; + +import lombok.Getter; +import lombok.NoArgsConstructor; +import org.hibernate.annotations.SQLDelete; +import org.hibernate.annotations.Where; + +@Entity +@Getter +@NoArgsConstructor +@Where(clause = "deleted = false") +@SQLDelete(sql = "UPDATE student SET deleted = true Where id = ?") +public class Student extends BaseEntity { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + + private String name; + + private String studentNum; + + private String phone; + + private String email; + + @ManyToOne(fetch = FetchType.LAZY) + private Major major1; + + @ManyToOne(fetch = FetchType.LAZY) + private Major major2; + + private Long loginCnt; + + private String profile; + + private String blog; + + private String githubId; + + private LocalDateTime lastLoginDate; + + @OneToMany(mappedBy = "student") + private List participants = new ArrayList<>(); +} diff --git a/src/main/java/com/server/hispath/student/domain/participate/Participant.java b/src/main/java/com/server/hispath/student/domain/participate/Participant.java new file mode 100644 index 0000000..9bcbfec --- /dev/null +++ b/src/main/java/com/server/hispath/student/domain/participate/Participant.java @@ -0,0 +1,30 @@ +package com.server.hispath.student.domain.participate; + +import javax.persistence.*; + +import com.server.hispath.activity.domain.Activity; +import com.server.hispath.common.BaseEntity; +import com.server.hispath.student.domain.Student; + +import lombok.Getter; +import lombok.NoArgsConstructor; +import org.hibernate.annotations.SQLDelete; +import org.hibernate.annotations.Where; + +@Entity +@Getter +@NoArgsConstructor +@Where(clause = "deleted = false") +@SQLDelete(sql = "UPDATE participate SET deleted = true Where id = ?") +public class Participant extends BaseEntity { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + + @ManyToOne(fetch = FetchType.LAZY) + private Student student; + + @ManyToOne(fetch = FetchType.LAZY) + private Activity activity; +} diff --git a/src/main/java/com/server/hispath/student/domain/repository/StudentRepository.java b/src/main/java/com/server/hispath/student/domain/repository/StudentRepository.java new file mode 100644 index 0000000..f5b72a4 --- /dev/null +++ b/src/main/java/com/server/hispath/student/domain/repository/StudentRepository.java @@ -0,0 +1,8 @@ +package com.server.hispath.student.domain.repository; + +import com.server.hispath.student.domain.Student; + +import org.springframework.data.jpa.repository.JpaRepository; + +public interface StudentRepository extends JpaRepository { +} diff --git a/src/main/java/com/server/hispath/student/presentation/StudentController.java b/src/main/java/com/server/hispath/student/presentation/StudentController.java new file mode 100644 index 0000000..d4d30ff --- /dev/null +++ b/src/main/java/com/server/hispath/student/presentation/StudentController.java @@ -0,0 +1,14 @@ +package com.server.hispath.student.presentation; + +import com.server.hispath.student.application.StudentService; + +import org.springframework.web.bind.annotation.RestController; + +import lombok.RequiredArgsConstructor; + +@RestController +@RequiredArgsConstructor +public class StudentController { + + private final StudentService studentService; +} diff --git a/src/test/java/com/server/hispath/HispathApplicationTests.java b/src/test/java/com/server/hispath/HispathApplicationTests.java new file mode 100644 index 0000000..bf384e0 --- /dev/null +++ b/src/test/java/com/server/hispath/HispathApplicationTests.java @@ -0,0 +1,13 @@ +package com.server.hispath; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class HispathApplicationTests { + + @Test + void contextLoads() { + } + +}