非常奇怪的问题 win下正常 linux 下无法访问网页

2020-09-11 18:59:22 [Thread: main]-[INFO]-[org.springframework.context.support.A                                                                                                                                                             bstractApplicationContext.prepareRefresh()]: Refreshing Root WebApplicationConte                                                                                                                                                             xt: startup date [Fri Sep 11 18:59:22 CST 2020]; root of context hierarchy

2020-09-11 18:59:22 [Thread: main]-[INFO]-[org.springframework.beans.factory.xml                                                                                                                                                             .XmlBeanDefinitionReader.loadBeanDefinitions()]: Loading XML bean definitions fr                                                                                                                                                             om ServletContext resource [/WEB-INF/applicationContext.xml]

2020-09-11 18:59:22 [Thread: main]-[INFO]-[org.springframework.beans.factory.xml                                                                                                                                                             .XmlBeanDefinitionReader.loadBeanDefinitions()]: Loading XML bean definitions fr                                                                                                                                                             om class path resource [ureport-core-context.xml]

2020-09-11 18:59:22 [Thread: main]-[INFO]-[org.springframework.beans.factory.xml                                                                                                                                                             .XmlBeanDefinitionReader.loadBeanDefinitions()]: Loading XML bean definitions fr                                                                                                                                                             om class path resource [ureport-font-context.xml]

_____  __________ __________________ _______ ________ ______________
__   / / /___  __ \___  ____/___  __ \__  __ \___  __ \___  __/__|__ \
_  / / / __  /_/ /__  __/   __  /_/ /_  / / /__  /_/ /__  /   ____/ /
/ /_/ /  _  _, _/ _  /___   _  ____/ / /_/ / _  _, _/ _  /    _  __/
\____/   /_/ |_|  /_____/   /_/      \____/  /_/ |_|  /_/     /____/
................................................................................                                                                                                                                                             ........................
.  uReport, is a Chinese style report engine licensed under the Apache License 2                                                                                                                                                             .0,                    .
.  which is opensource, easy to use,high-performance, with browser-based-designe                                                                                                                                                             r.                     .
................................................................................                                                                                                                                                             ........................


2020-09-11 18:59:23 [Thread: main]-[INFO]-[org.springframework.web.context.Conte                                                                                                                                                             xtLoader.initWebApplicationContext()]: Root WebApplicationContext: initializatio                                                                                                                                                             n completed in 1344 ms
 getDatacenterId: null

2020-09-11 18:59:24 [Thread: main]-[INFO]-[com.alibaba.druid.pool.DruidDataSourc                                                                                                                                                             e.init()]: {dataSource-1} inited

2020-09-11 18:59:24 [Thread: main]-[INFO]-[com.qinhailin.api.service.QuartzManag                                                                                                                                                             er.<init>()]: 初始化调度器

2020-09-11 18:59:24 [Thread: main]-[INFO]-[com.qinhailin.api.service.QuartzManag                                                                                                                                                             er.addJob()]: 创建作业=> [作业名称:TaskJobName 作业组:TaskJobGroup]

2020-09-11 18:59:24 [Thread: main]-[INFO]-[com.qinhailin.api.service.QuartzManag                                                                                                                                                             er.start()]: 启动调度器

2020-09-11 18:59:24 [Thread: main]-[INFO]-[io.undertow.Undertow.start()]: starti                                                                                                                                                             ng server: Undertow - 2.0.30.Final

2020-09-11 18:59:24 [Thread: main]-[INFO]-[org.xnio.Xnio.<clinit>()]: XNIO versi                                                                                                                                                             on 3.3.8.Final

2020-09-11 18:59:24 [Thread: main]-[INFO]-[org.xnio.nio.NioXnio.<clinit>()]: XNI                                                                                                                                                             O NIO Implementation Version 3.3.8.Final
Starting Complete in 2.8 seconds. Welcome To The JFinal World (^_^)

[root@iZbp1d13pajsoch2kvhqwaZ yqtAdmin]#
2020-09-11 18:59:43 [Thread: XNIO-1 task-1]-[WARN]-[com.jfinal.core.ActionHandler.handle()]: 404 Action Not Found:


评论区

iiixxxiii

2020-09-11 19:06

java -version
java version "1.8.0_192"
Java(TM) SE Runtime Environment (build 1.8.0_192-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.192-b12, mixed mode)

JFinal

2020-09-11 19:33

输出信息绝大部分是 INFO,并不是异常

只有一个是 WARN:
[Thread: XNIO-1 task-1]-[WARN]-[com.jfinal.core.ActionHandler.handle()]: 404 Action Not Found:

这个只是一个 404 ,url 不对而已,整体上没看出有任何问题

你将日志级别调整到 WARN,就不会输出 INFO 了

iiixxxiii

2020-09-11 20:13

@JFinal 对就是正常输出没报错,但是就是无法访问,每个地址 都是404

registernet

2020-09-13 12:53

2020-09-11 18:59:43 [Thread: XNIO-1 task-1]-[WARN]-[com.jfinal.core.ActionHandler.handle()]: 404 Action Not Found:
这句表名你的target都是空的,当然找不到对应的controller去处理,所以还是看看你的配置和代码吧,仅仅这样的信息是没人可以解决问题的.

iiixxxiii

2020-09-18 13:49

找到问题了,使用 了自动加载,报错的是生产环境,代码打包成jar,所以没有找到,只要自动加载时候搜索 jar包就可以找到controller了

热门反馈

扫码入社