Przeglądaj źródła

新增jsonp注解支持

周浩 9 lat temu
rodzic
commit
a03b5dae66

+ 13 - 0
hsweb-web-core/src/main/java/org/hsweb/web/core/jsonp/Jsonp.java

@@ -0,0 +1,13 @@
+package org.hsweb.web.core.jsonp;
+
+import java.lang.annotation.*;
+
+/**
+ * Created by zhouhao on 16-5-26.
+ */
+@Target({ElementType.TYPE, ElementType.METHOD})
+@Retention(RetentionPolicy.RUNTIME)
+@Documented
+public @interface Jsonp {
+    String value() default "callback";
+}