×

spring boot

spring-java使用Validation参数验证-自定义校验器

我的世界龙化HIM404 我的世界龙化HIM404 发表于2024-06-30 浏览5981 评论0
在开发JAVA服务器端代码时,我们会遇到对外部传来的参数合法性进行验证,而hibernate-validator提供了一些常用的参数校验注解,我们可以拿来使用。 spring-boot-web,内嵌了hibernate-validator,并且hibernate-validator依赖tomcat-el包。在使用webflux容器下,会报错。将 hibernate-validator 改为 spring-boot-starter-validation,其中有jakarta.el替代实现el

nginx

nginx代理后打开grafana页面If you‘re seeing this Grafana has failed to load its application files

闲鱼之家 闲鱼之家 发表于2024-06-13 浏览6367 评论0
在学习开源监控prometheus和grafana的时候,通过nginx代理无法访问grafana问题记录。在调整grafana的ini文件后,直连grafana是没问题,通过nginx代理访问页面报错如下。 If you’re seeing this Grafana has failed to load its application files This could be caused by your reverse proxy settings. If you host gra