启动后如上如;
11-Apr-2022 22:22:27.470 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
11-Apr-2022 22:22:27.470 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 45 ms
Connected to server
[2022-04-11 10:22:27,900] Artifact horn_jinghualong:war exploded: Artifact is being deployed, please wait...
11-Apr-2022 22:22:27.940 警告 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
11-Apr-2022 22:22:37.451 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [D:\software_project_workplace\Tomcat\apache-tomcat-8.5.39\webapps\manager]
11-Apr-2022 22:22:37.521 信息 [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
11-Apr-2022 22:22:37.561 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\software_project_workplace\Tomcat\apache-tomcat-8.5.39\webapps\manager] has finished in [110] ms
11-Apr-2022 22:22:44.772 信息 [RMI TCP Connection(3)-127.0.0.1] org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory.getObjectInstance Name = ds1 Ignoring unknown property: value of "DB Connection" for "description" property
11-Apr-2022 22:22:45.442 信息 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
然后就没有;
原因是log4j的日志没有开启,只需要开启即可;
打开后具体的错误信息就显示出来了;
总结:
一直启动不起来,启动后只是到log4j那里就停下来了,原因就是启动时报错了,但是呢log4j的日志没有开启,所以看不到具体的错误信息,
只需要开启log4j日志就可看到具体的报错信息是由于数据库连接不上的原因了;