77import ch .qos .logback .core .encoder .EchoEncoder ;
88import org .springframework .boot .SpringApplication ;
99import org .springframework .boot .autoconfigure .SpringBootApplication ;
10- import org .springframework .web .bind .annotation .GetMapping ;
11- import org .springframework .web .bind .annotation .RequestParam ;
12- import org .springframework .web .bind .annotation .RestController ;
10+ import org .springframework .web .bind .annotation .*;
1311
1412import java .io .*;
1513import java .text .SimpleDateFormat ;
@@ -66,7 +64,7 @@ public void queue_map(QueueRequest q) {
6664 serviceThread .interrupt ();
6765 }
6866
69- @ GetMapping ("/service" )
67+ @ RequestMapping ("/service" )
7068 public String webServiceStatus () {
7169 StringBuilder sb = new StringBuilder ();
7270 sb .append ("<head> <title> WebService status</title> </head>" );
@@ -86,13 +84,13 @@ public String webServiceStatus() {
8684 return sb .toString ();
8785 }
8886
89- @ GetMapping ("/ftp" )
87+ @ RequestMapping ("/ftp" )
9088 public String ftpServiceStatus () {
9189 return ("yeah... working on that" );
9290 }
9391
9492 // 192.168.178.35:8080/request?name=mapname&coords=13.005,15.123_13.005,15.123_13.005,15.123_13.005,15.123_13.005,15.123&date=2117-12-11
95- @ GetMapping ( "/request" )
93+ @ RequestMapping ( value = "/request" )
9694 public String request (@ RequestParam (value = "name" , defaultValue = "noname" ) String mapname ,
9795 @ RequestParam (value = "coords" ) String coords ,
9896 @ RequestParam (value = "date" , defaultValue = "insert" ) String date ) {
@@ -162,7 +160,7 @@ public String request(@RequestParam(value = "name", defaultValue = "noname") Str
162160 return null ;
163161 }
164162
165- @ GetMapping ("/test" )
163+ @ RequestMapping ("/test" )
166164 public String test () {
167165 return ("<head> <title> PageTitle </title> </head> <body> <h1> This is a Heading </h1> <p> This is a paragraph.</p> </body>" );
168166 }
0 commit comments