@NotBlank注解使用时必须在入参处(controller)加@Valid. 如: public Class User{ @NotBlank(message = "用户名不能为空") private String username;} 调用时: public String getUsername(@Valid User user){} 如果不加@Valid,@NotBlank不会生效.@NotEmpty等也是一样.
配置了 sudo vim /etc/security/limits.conf * soft nofile * hard nofile 单独起进程没问题, 放到supervisor下监管启动,则报错 max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536] 原因: 应该是supervisor监管的进程配置来自于supervisor所在环境配置, supervi