thinkgem / jeesite

Java rapid development platform, based (Spring Boot, Spring MVC, Apache Shiro, MyBatis, Beetl, Bootstrap, AdminLTE), online code generation, including modules: Organization, role users, menu and button authorization, data permissions, system parameters, content management, workflow, etc. Loose coupling design is adopted; one key skin switch; account security Settings, password policies; Online scheduled task configuration; Support cluster, support SAAS; Support for multiple data sources
http://jeesite.com
Apache License 2.0
8k stars 5.66k forks source link

关于SLB的健康检查 #484

Open lovese opened 5 years ago

lovese commented 5 years ago

您好,我把jeesite放在tomcat里运行,两台服务器做负载均衡,负载均衡器SLB是通过HEAD方法获取状态码来检测后端服务器是否正常的,但是请求jeesite项目里的文件时都是返回400状态码,无法完成SLB的健康检查,且jeesite项目外的文件也被限制访问不了,请问这种情况怎么解决?

smallyaohailu commented 5 years ago

请求路径不对才出现的400吧。。

JordonZhu commented 5 years ago

我这遇到的400,一般是请求参数有问题

lovese commented 5 years ago

健康检查的地址一般设置静态地址,我都是返回400

smallyaohailu commented 5 years ago

正常访问ok吗?

smallyaohailu commented 5 years ago

静态地址正常访问

lovese commented 5 years ago

能正常访问,但是获取状态码是400

smallyaohailu commented 5 years ago

在日志拦截器里,跟踪下,请求实际请求的地址,我觉得还是配置的问题。。。

lovese commented 5 years ago

怎么才能请求到实际的地址呢?