监听器不起作用
这是监听器代码
同步部署到tomcat之后,重新启动tomcat,查询不到打印信息,说明监听器不起作用?????
"C:\Program Files\Apache Software Foundation\Tomcat 9.0\bin\catalina.bat" run [2018-05-10 09:32:43,518] Artifact webapp:war Exploded: Waiting for server connection to start artifact deployment... Using CATALINA_BASE: "C:\Users\Administrator\.IntelliJIdea2017.3\system\tomcat\Unnamed_mybatispro_5" Using CATALINA_HOME: "C:\Program Files\Apache Software Foundation\Tomcat 9.0" Using CATALINA_TMPDIR: "C:\Program Files\Apache Software Foundation\Tomcat 9.0\temp" Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_144" Using CLASSPATH: "C:\Program Files\Apache Software Foundation\Tomcat 9.0\bin\bootstrap.jar;C:\Program Files\Apache Software Foundation\Tomcat 9.0\bin\tomcat-juli.jar" 10-May-2018 09:32:44.843 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/9.0.6 10-May-2018 09:32:44.846 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Mar 5 2018 09:34:35 UTC 10-May-2018 09:32:44.846 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 9.0.6.0 10-May-2018 09:32:44.846 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 10 10-May-2018 09:32:44.846 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.0 10-May-2018 09:32:44.846 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64 10-May-2018 09:32:44.846 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:\Program Files\Java\jdk1.8.0_144\jre 10-May-2018 09:32:44.846 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_144-b01 10-May-2018 09:32:44.847 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation 10-May-2018 09:32:44.847 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Users\Administrator\.IntelliJIdea2017.3\system\tomcat\Unnamed_mybatispro_5 10-May-2018 09:32:44.847 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 9.0 10-May-2018 09:32:44.847 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\Administrator\.IntelliJIdea2017.3\system\tomcat\Unnamed_mybatispro_5\conf\logging.properties 10-May-2018 09:32:44.848 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 10-May-2018 09:32:44.848 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote= 10-May-2018 09:32:44.848 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099 10-May-2018 09:32:44.848 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false 10-May-2018 09:32:44.848 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false 10-May-2018 09:32:44.848 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1 10-May-2018 09:32:44.848 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 10-May-2018 09:32:44.848 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 10-May-2018 09:32:44.849 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs= 10-May-2018 09:32:44.849 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\Administrator\.IntelliJIdea2017.3\system\tomcat\Unnamed_mybatispro_5 10-May-2018 09:32:44.849 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 9.0 10-May-2018 09:32:44.849 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 9.0\temp 10-May-2018 09:32:44.849 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk1.8.0_144\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\MySQL\MySQL Utilities 1.6\;C:\Program Files\MySQL\MySQL Server 5.7\bin;";C:\Program Files\Java\jdk1.8.0_144\bin;C:\Program Files\Java\jdk1.8.0_144\jre\bin;";E:;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Java\jdk1.8.0_144\bin;E:\Maven\apache-maven-3.5.3\bin;C:\Program Files\Java\jdk1.8.0_144\bin;;.] 10-May-2018 09:32:44.958 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"] 10-May-2018 09:32:44.971 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 10-May-2018 09:32:44.981 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"] 10-May-2018 09:32:44.983 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 10-May-2018 09:32:44.983 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 445 ms 10-May-2018 09:32:45.020 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina] 10-May-2018 09:32:45.020 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/9.0.6 10-May-2018 09:32:45.030 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"] 10-May-2018 09:32:45.042 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"] 10-May-2018 09:32:45.045 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 61 ms Connected to server [2018-05-10 09:32:45,132] Artifact webapp:war Exploded: Artifact is being deployed, please wait... [2018-05-10 09:32:45,525] Artifact webapp:war Exploded: Artifact is deployed successfully [2018-05-10 09:32:45,525] Artifact webapp:war Exploded: Deploy took 393 milliseconds 10-May-2018 09:32:55.040 信息 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\manager] 10-May-2018 09:32:55.119 信息 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\manager] has finished in [79] ms
17
收起
正在回答 回答被采纳积分+1
4回答
Java数据库开发与实战应用2018版
- 参与学习 人
- 提交作业 277 份
- 解答问题 4297 个
Java数据库开发的必备技能,从流行的MySQL数据库开始,到Java原生的数据库管理接口JDBC的使用,再到常用的数据持久化框架MyBatis,让你向Java工程师的目标又迈进了一步!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星