diff --git a/.gitignore b/.gitignore index 9e9c98a..e75b142 100644 --- a/.gitignore +++ b/.gitignore @@ -37,4 +37,4 @@ out/ .vscode/ .env -application-SECRET.properties \ No newline at end of file +secret.properties \ No newline at end of file diff --git a/src/main/kotlin/com/example/demoserver/controller/IndexController.kt b/src/main/kotlin/com/example/demoserver/controller/IndexController.kt index aaf9211..e5e9760 100644 --- a/src/main/kotlin/com/example/demoserver/controller/IndexController.kt +++ b/src/main/kotlin/com/example/demoserver/controller/IndexController.kt @@ -7,8 +7,8 @@ import org.springframework.web.bind.annotation.GetMapping @Controller class IndexController { - @GetMapping("/") + @GetMapping("/doserver") fun index(): String { - return "index" + return "doserver" } } \ No newline at end of file diff --git a/src/main/kotlin/com/example/demoserver/controller/LetterController.kt b/src/main/kotlin/com/example/demoserver/controller/LetterController.kt index 2225b6d..c437835 100644 --- a/src/main/kotlin/com/example/demoserver/controller/LetterController.kt +++ b/src/main/kotlin/com/example/demoserver/controller/LetterController.kt @@ -6,7 +6,6 @@ import com.example.demoserver.service.dto.response.ServiceLetterResponse import org.springframework.stereotype.Controller import org.springframework.ui.Model import org.springframework.web.bind.annotation.GetMapping -import org.springframework.web.bind.annotation.PostMapping import org.springframework.web.bind.annotation.RequestParam diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 6b422d7..7d75296 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -1,3 +1,8 @@ +server: + servlet: + encoding: + force-response: true + spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver @@ -13,7 +18,7 @@ spring: config: activate: on-profile: dev - import: application-SECRET-properties + import: secret.properties web: resources: static-locations: classpath:/static/ diff --git a/src/main/resources/static/image/unan.png b/src/main/resources/static/image/unan.png new file mode 100644 index 0000000..6a2a599 Binary files /dev/null and b/src/main/resources/static/image/unan.png differ diff --git a/src/main/resources/templates/index.mustache b/src/main/resources/templates/doserver.mustache similarity index 77% rename from src/main/resources/templates/index.mustache rename to src/main/resources/templates/doserver.mustache index ed308ff..cf3441c 100644 --- a/src/main/resources/templates/index.mustache +++ b/src/main/resources/templates/doserver.mustache @@ -29,19 +29,19 @@