IntelliJ中的新Maven项目

时间:2019-04-06 05:50:16

标签: maven intellij-idea

因此,我在IntelliJ中创建了一个新的maven项目。要运行它,我使用的是Smart Tomcat。在这里,您可以查看其设置。

enter image description here

运行项目时,我得到他的日志输出。

Apr 06, 2019 8:37:04 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/Users/theodosiostziomakas/.SmartTomcat/emailservice/web-service-verification/lib], exists: [false], isDirectory: [false], canRead: [false]
Apr 06, 2019 8:37:04 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/Users/theodosiostziomakas/.SmartTomcat/emailservice/web-service-verification/lib], exists: [false], isDirectory: [false], canRead: [false]
Apr 06, 2019 8:37:04 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/Users/theodosiostziomakas/.SmartTomcat/emailservice/web-service-verification/lib], exists: [false], isDirectory: [false], canRead: [false]
Apr 06, 2019 8:37:04 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/Users/theodosiostziomakas/.SmartTomcat/emailservice/web-service-verification/lib], exists: [false], isDirectory: [false], canRead: [false]
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version name:   Apache Tomcat/9.0.16
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:          Feb 4 2019 16:30:29 UTC
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version number: 9.0.16.0
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:               Mac OS X
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:            10.14.4
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:          x86_64
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home:             /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:           1.8.0_131-b11
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:            Oracle Corporation
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE:         /Users/theodosiostziomakas/.SmartTomcat/emailservice/web-service-verification
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME:         /Users/theodosiostziomakas/.SmartTomcat/emailservice/web-service-verification
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
Apr 06, 2019 8:37:05 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/Users/theodosiostziomakas/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]
Apr 06, 2019 8:37:06 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Apr 06, 2019 8:37:06 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
Apr 06, 2019 8:37:06 AM org.apache.catalina.startup.Catalina load
INFO: Server initialization in [1,415] milliseconds
Apr 06, 2019 8:37:06 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Apr 06, 2019 8:37:06 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet engine: [Apache Tomcat/9.0.16]
Apr 06, 2019 8:37:06 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Apr 06, 2019 8:37:06 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
Apr 06, 2019 8:37:06 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in [717] milliseconds
http://localhost:8080/web-service-verification

最后,我在Chrome浏览器中输入http://localhost:8080/web-service-ve,rification。但是,我收到了烦人的404错误。我应该在项目中进行其他设置吗?我再说一遍,这是一个 Maven ,而不是一个 Spring boot 项目。

404 error

如果您想了解我在说什么,可以克隆并运行该项目。

https://github.com/theo82/email-service

0 个答案:

没有答案