我们有一个采用以下技术的 Web 应用程序:Java、SpringBoot、Docker、微服务、Jhipster。前端容器的端口号是80。
我正在尝试禁用前端微服务的保持活动选项,因为 SSO 身份验证服务器要求将此参数设置为 false。
我尝试使用 maven 创建前端容器:mvn -Pqpm,no-liquibase -Dhttp.keepAlive=false clean verify jib:dockerBuild
我还尝试在前端容器的 pom.xml 中禁用:
<http.keepAlive>false</http.keepAlive>
<https.keepAlive>false</https.keepAlive>
Run Code Online (Sandbox Code Playgroud)
但当我发送 http 请求时,保持活动选项仍保持启用状态:
Connecting to qwerty.xyz|10.10.219.200|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Date: Mon, 06 Apr 2020 21:14:50 GMT
Server: Apache
Last-Modified: Fri, 21 Oct 2016 08:42:15 GMT
ETag: "4107-84-53f5c04e1c7c0"
Accept-Ranges: bytes
Content-Length: 132
Cache-Control: max-age=0, no-store
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html
Length: 132 [text/html]
Saving to: `/dev/null'
0K 100% 15.7M=0s
2020-04-06 23:14:50 (15.7 …Run Code Online (Sandbox Code Playgroud) 我想从数据库中获得一些统计数据(最小值,最大值,平均值),但我目前遇到了问题.我认为语法不正确,但我不确定.我无法得到预期的结果.
这是桌子;
name period b c
-----------------------------
KONYA July - 2014 7 3
KONYA July - 2014 8 5
KONYA July - 2014 9 9
KARAMAN July - 2014 5 2
KARAMAN July - 2014 4 5
LYON July - 2014 5 1
LYON July - 2014 6 9
LYON July - 2014 7 7
Run Code Online (Sandbox Code Playgroud)
这就是我的期望;
name period max(b) min(b) max(c) min(c) ...
--------------------------------------------------------------
KONYA July - 2014 9 7 9 3
KARAMAN July - 2014 5 4 5 2 …Run Code Online (Sandbox Code Playgroud) average ×1
docker ×1
java ×1
jhipster ×1
keep-alive ×1
max ×1
min ×1
spring-boot ×1
sql ×1
sql-server ×1