diff --git a/pom.xml b/pom.xml
index 2af2ca0..0287bc5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -147,11 +147,11 @@
-
- org.apache.tomcat
- servlet-api
- 6.0.35
-
+
+
+
+
+
org.apache.httpcomponents
@@ -162,12 +162,19 @@
-
org.springframework.boot
spring-boot-maven-plugin
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.8.1
+
+ 11
+
+
diff --git a/src/main/java/com/xkrs/controller/HelloWorldController.java b/src/main/java/com/xkrs/controller/HelloWorldController.java
new file mode 100644
index 0000000..ce0af87
--- /dev/null
+++ b/src/main/java/com/xkrs/controller/HelloWorldController.java
@@ -0,0 +1,21 @@
+package com.xkrs.controller;
+
+import com.xkrs.encapsulation.PromptMessageEnum;
+import org.springframework.context.i18n.LocaleContextHolder;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.Locale;
+
+import static com.xkrs.encapsulation.OutputEncapsulation.outputEncapsulationObject;
+
+@RestController
+public class HelloWorldController {
+
+ @GetMapping("/hello")
+ public String hello() {
+ Locale locale = LocaleContextHolder.getLocale();
+ return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "hello", locale);
+ }
+
+}