2021-03-25 15:07

都不看文档的吗,分页问题不时就看到有人问。https://jfinal.com/doc/5-6

2021-02-19 11:45

请问office这种xml导出模板的手段有没有相关的说明资料。之前也是在jfinal论坛看到的用html模板导出Excel的方法,查了一下有这样一篇文章https://www.c-sharpcorner.com/article/creating-a-dynamic-excel-using-html/ 里面提到的一些定制样式的xml代码跟你的有点像。就是我没找到更详细更系统的描述这种设置都有哪些的说明文档。

2021-01-26 16:39

@JFinal 好家伙,删掉了cookie里面几个带繁体字的键值就可以了。。但是为什么之前的undertow 版本会没事呢,真奇怪。。谢谢詹总了

2021-01-20 15:36

加油奥利给

2020-09-18 19:05

C:\WINDOWS\system32>curl -v -X TRACE http://localhost/check/captcha
* Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 80 (#0)
> TRACE /check/captcha HTTP/1.1
> Host: localhost
> User-Agent: curl/7.55.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Cache-Control: no-cache
< Set-Cookie: JSESSIONID=4-YBgJ5YFXMSSVkquALBZ1m3lMO9L-ynaPGJ601D; path=/
< Server: JFinal
< Pragma: no-cache
< Date: Fri, 18 Sep 2020 08:45:44 GMT
< Connection: keep-alive
< Transfer-Encoding: chunked
< Content-Type: image/jpeg
<
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: " to save to a file.
* Failed writing body (0 != 1365)
* Failed writing data
* Closing connection 0

↓修改后↓

C:\WINDOWS\system32>curl -v -X TRACE http://localhost/check/captcha
* Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 80 (#0)
> TRACE /check/captcha HTTP/1.1
> Host: localhost
> User-Agent: curl/7.55.1
> Accept: */*
>
< HTTP/1.1 405 Method Not Allowed
< Connection: keep-alive
< Server: JFinal
< Content-Length: 0
< Date: Fri, 18 Sep 2020 09:05:24 GMT
<
* Connection #0 to host localhost left intact

2020-09-18 19:05

@JFinal 成功了!!詹总牛逼!在undertow.start();前加入如下代码

undertow.onDeploy((classLoader, deploymentInfo) -> {
deploymentInfo.addInitialHandlerChainWrapper(new HandlerWrapper() {

@Override
public HttpHandler wrap(HttpHandler handler) {
HttpString[] disallowedHttpMethods = { HttpString.tryFromString("TRACE"),
HttpString.tryFromString("TRACK") };
return new DisallowedMethodsHandler(handler, disallowedHttpMethods);
}
});
});

2020-09-18 17:10

在看这个帖子,貌似有思路https://blog.csdn.net/nklinsirui/article/details/108540403

2020-09-18 16:36

@JFinal 请问这个HTTP TRACE怎么关闭

2020-09-16 15:43

@JFinal 破案了。因为疏忽,undertow.txt的undertow.resourcePath设置了WebRoot, /, classpath:static 。问题就是这个/造成的,耽误大家时间了

2020-09-16 14:30

@JFinal @Max_Qiu 确实,得重现问题,我们才好找到解决问题的方向,还有检验问题最后是否解决。除了我们公司交付以外,还有另外几个系统一同验收,他们用的是别的框架,现在验收方表示别的系统都没有这些问题,只有我们系统有这个报告。看到楼上说可能跟系统用户权限有关,我们先试着顺着在这个方向上看看怎么解决