All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fhs.demo.action.TestViladatorAction Maven / Gradle / Ivy

The newest version!
package com.fhs.demo.action;

import com.fhs.core.group.Add;
import com.fhs.core.result.HttpResult;
import com.fhs.demo.bean.TestViladator;
import org.springframework.stereotype.Controller;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.validation.Valid;
import java.util.HashMap;
import java.util.Map;


@Controller
@RequestMapping("/viladator")
public class TestViladatorAction {

    @RequestMapping(value = "/checkParam")
    @ResponseBody
    public HttpResult checkParam( @Valid TestViladator testAop) {
       System.out.println("");
       return HttpResult.success(new HashMap());
    }

    @RequestMapping(value = "/checkAddParam")
    @ResponseBody
    public HttpResult checkAddParam( @Validated(Add.class) TestViladator testAop) {
        System.out.println("");
        return HttpResult.success(new HashMap());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy