@Path class DemoController { @GetRoute public void hello(Response response) { response.text("Ok."); } }
JSON JSON = actionMethod.getAnnotation(JSON.class); boolean isRestful = (null != JSON) || (null != path && path.restful());
/** * @author biezhi * @date 2017/9/19 */ @Path public class IndexController { public void findUser(@PathParam Long uid) { } public void users(@Param String name) { } public void notify(@BodyParam NotifyType notifyType) { } }
JSON JSON = actionMethod.getAnnotation(JSON.class); boolean isRestful = (null != JSON) || (null != path && path.restful());
@Path public class DemoController {
JSON JSON = actionMethod.getAnnotation(JSON.class); boolean isRestful = (null != JSON) || (null != path && path.restful());
@Path public class AuthController {
@Path("admin") public class AuthController extends BaseController {
/** * 第三方支付回调 * * @author biezhi * @date 2018/9/28 */ @Slf4j @Path(value = "callback", restful = true) public class CallbackController { @Inject private MakeMoneyService makeMoneyService; @PostRoute("youzan") public String youzan(Request request) { String body = request.bodyToString(); log.info("收到有赞支付回调: {}", body); makeMoneyService.execCallback(Platform.YOUZAN, body); return "success"; } @PostRoute("payjs") public String payjs(Request request) { String body = request.bodyToString(); log.info("收到PAYJS支付回调1: {}", body); return "success"; } }
@Path public class IndexController {
@Path("admin/themes") public class ThemeController extends BaseController {
@Path("admin/attach") public class AttachController extends BaseController {
@Path public class InstallController {
@Path("admin/category") public class CategoryController extends BaseController {
@Slf4j @Path("install") public class InstallController extends BaseController {
@Path("admin/template") public class TemplateController extends BaseController {
@Path public class CategoryController extends BaseController {