io.github.greennlab.ddul.sample.validation.ValidationTestController Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ddul Show documentation
Show all versions of ddul Show documentation
DDul means "ground" in korean prounance.
It helps to you when concreate a java projects.
And support with database access, cache abstraction, system code generation,
hierarchical data handling, article management and etc.
package io.github.greennlab.ddul.sample.validation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/sample/validation")
public class ValidationTestController {
@PostMapping
public Object test(@Validated @RequestBody ValidationTest test) {
return test;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy