hibernate-validator reloading cannot take effort

ZeroTurnaround Homepage Forums JRebel Support hibernate-validator reloading cannot take effort

This topic contains 0 replies, has 1 voice, and was last updated by  Elliot Mok 1 month ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #66785

    Elliot Mok
    Member

    I used the hibernate-validator which integrated with spring framework.When I appended some hibernate-validator annotation in a Controller class.The console showed that JRebel reloaded the class.But the validation didn’t take effort!The code is shown below:
    `
    import org.springframework.validation.annotation.Validated;

    import javax.validation.constraints.Min;
    //something other import

    @RestController
    @Validated
    public class MyController {
    @GetMapping(“/dogs/”)
    public RemindPageResult listDogs(@RequestParam(required = false) @Min(1) Integer curPage, @RequestParam(required = false) Integer pageSize){
    //something
    }
    }
    `
    What I appended is “@Validated” and “@Min(1)”.
    Any suggestion?Thanks in advance!

    Does it seem likely that spring should re-inject the bean?

    • This topic was modified 1 month ago by  Elliot Mok.
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.