|
@@ -0,0 +1,21 @@
|
|
|
+package com.tzld.piaoquan.ad.engine.server.controller;
|
|
|
+
|
|
|
+import com.tzld.piaoquan.ad.engine.commons.util.ExtractorUtils;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import java.util.Arrays;
|
|
|
+
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("/test")
|
|
|
+public class TestController {
|
|
|
+
|
|
|
+ @GetMapping("/word")
|
|
|
+ public String check1(@RequestParam String tags, @RequestParam String title) {
|
|
|
+ Double[] doubles = ExtractorUtils.funcC34567ForTagsNew(tags, title);
|
|
|
+ return Arrays.toString(doubles);
|
|
|
+ }
|
|
|
+}
|