From b1102b472c31800954b7063f39ee8d96cf73c142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=E5=98=89=E9=98=B3?= Date: Sun, 18 Aug 2019 19:07:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8jetty=E5=AE=B9=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 12 ++++++++++++ src/main/java/top/fjy8018/demo/DemoApplication.java | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d0ba6bf..231ad4c 100644 --- a/pom.xml +++ b/pom.xml @@ -23,6 +23,18 @@ org.springframework.boot spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-tomcat + + + + + + org.springframework.boot + spring-boot-starter-jetty diff --git a/src/main/java/top/fjy8018/demo/DemoApplication.java b/src/main/java/top/fjy8018/demo/DemoApplication.java index caa0aa8..1ac2a9d 100644 --- a/src/main/java/top/fjy8018/demo/DemoApplication.java +++ b/src/main/java/top/fjy8018/demo/DemoApplication.java @@ -14,7 +14,7 @@ public class DemoApplication { SpringApplication.run(DemoApplication.class, args); } - @RequestMapping("/{content}") + @RequestMapping("/print/{content}") public String helloWorld(@PathVariable(name = "content", required = false) String content) { return "hello , " + content; }