|
|
@ -28,6 +28,7 @@ import org.springframework.expression.ExpressionParser; |
|
|
|
import org.springframework.expression.spel.standard.SpelExpressionParser; |
|
|
|
import org.springframework.validation.annotation.Validated; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import javax.validation.constraints.NotBlank; |
|
|
@ -141,5 +142,14 @@ public class CaptchaController { |
|
|
|
return R.ok("接受到参数【"+phonenumber+"】"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* demo-params |
|
|
|
*/ |
|
|
|
@SaIgnore |
|
|
|
@GetMapping("/dataComputer/{data}") |
|
|
|
public R dataComputer(@PathVariable Integer data) { |
|
|
|
|
|
|
|
return R.ok("接受到参数【"+data+"】,平方数是【"+Math.pow(data,2)+"】" ); |
|
|
|
} |
|
|
|
|
|
|
|
} |