|
@@ -2,18 +2,18 @@ package benchmark;
|
|
|
|
|
|
import benchmark.entities.HelloWorld;
|
|
import benchmark.entities.HelloWorld;
|
|
import com.kolich.curacao.annotations.Controller;
|
|
import com.kolich.curacao.annotations.Controller;
|
|
-import com.kolich.curacao.annotations.methods.GET;
|
|
|
|
|
|
+import com.kolich.curacao.annotations.methods.RequestMapping;
|
|
import com.kolich.curacao.handlers.requests.matchers.AntPathMatcher;
|
|
import com.kolich.curacao.handlers.requests.matchers.AntPathMatcher;
|
|
|
|
|
|
@Controller
|
|
@Controller
|
|
public final class Benchmarks {
|
|
public final class Benchmarks {
|
|
|
|
|
|
- @GET(value="/json", matcher=AntPathMatcher.class)
|
|
|
|
|
|
+ @RequestMapping(value="/json", matcher=AntPathMatcher.class)
|
|
public final HelloWorld json() {
|
|
public final HelloWorld json() {
|
|
return new HelloWorld("Hello, World!");
|
|
return new HelloWorld("Hello, World!");
|
|
}
|
|
}
|
|
|
|
|
|
- @GET(value="/plaintext", matcher=AntPathMatcher.class)
|
|
|
|
|
|
+ @RequestMapping(value="/plaintext", matcher=AntPathMatcher.class)
|
|
public final String plainText() {
|
|
public final String plainText() {
|
|
return "Hello, World!";
|
|
return "Hello, World!";
|
|
}
|
|
}
|