From d7dec53511ee2f6bd54b70553d1a9ac2720d1363 Mon Sep 17 00:00:00 2001 From: haerong22 Date: Fri, 3 Sep 2021 12:13:16 +0900 Subject: [PATCH] http encryption : aes --- .../controller/TestController.java | 2 + .../src/main/resources/templates/index.html | 53 ++- .../main/resources/templates/security.html | 378 ------------------ 3 files changed, 47 insertions(+), 386 deletions(-) delete mode 100644 http-encryption/src/main/resources/templates/security.html diff --git a/http-encryption/src/main/java/com/example/httpencryption/controller/TestController.java b/http-encryption/src/main/java/com/example/httpencryption/controller/TestController.java index 30ed9667..8ce00fbd 100644 --- a/http-encryption/src/main/java/com/example/httpencryption/controller/TestController.java +++ b/http-encryption/src/main/java/com/example/httpencryption/controller/TestController.java @@ -2,6 +2,7 @@ package com.example.httpencryption.controller; import com.example.httpencryption.dto.TestDto; import org.apache.commons.io.IOUtils; +import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; @@ -14,6 +15,7 @@ import java.nio.charset.StandardCharsets; @RestController public class TestController { + @CrossOrigin @PostMapping("/") public TestDto hello(HttpServletRequest request, @RequestBody TestDto dto) throws IOException { diff --git a/http-encryption/src/main/resources/templates/index.html b/http-encryption/src/main/resources/templates/index.html index 8d19a589..1d866386 100644 --- a/http-encryption/src/main/resources/templates/index.html +++ b/http-encryption/src/main/resources/templates/index.html @@ -6,24 +6,46 @@
- - - +
+ 이름 +
+
+ 나이 +
+
+ +
\ No newline at end of file diff --git a/http-encryption/src/main/resources/templates/security.html b/http-encryption/src/main/resources/templates/security.html deleted file mode 100644 index 7ec8df0d..00000000 --- a/http-encryption/src/main/resources/templates/security.html +++ /dev/null @@ -1,378 +0,0 @@ - - - - - - - Document - - - -
-
- -
- -
-
-
- -
- -
-
-
- -
- -
- -
-
-
- -
- -
-
-
-
-
- - - - - \ No newline at end of file