Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 尝试运行maven项目以使用thymeleaf发送html电子邮件时出现错误HTTP错误404?_Java_Spring_Maven_Jetty_Thymeleaf - Fatal编程技术网

Java 尝试运行maven项目以使用thymeleaf发送html电子邮件时出现错误HTTP错误404?

Java 尝试运行maven项目以使用thymeleaf发送html电子邮件时出现错误HTTP错误404?,java,spring,maven,jetty,thymeleaf,Java,Spring,Maven,Jetty,Thymeleaf,我正在创建一个maven项目,使用thymeleaf templateEngine发送html电子邮件。 浏览器在尝试运行我的项目时显示以下错误。我使用Intellij Idea和Jetty作为服务器。 HTTP错误404 Problem accessing /adsops/index. Reason: Not Found 这就是控制台所说的。我重新检查了我的依赖关系好几次,但问题仍然出现。请帮助找出错误在哪里 [INFO] Scanning for projects...

我正在创建一个maven项目,使用thymeleaf templateEngine发送html电子邮件。 浏览器在尝试运行我的项目时显示以下错误。我使用Intellij Idea和Jetty作为服务器。 HTTP错误404

Problem accessing /adsops/index. Reason:

    Not Found   
这就是控制台所说的。我重新检查了我的依赖关系好几次,但问题仍然出现。请帮助找出错误在哪里

 [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building adsops-core 0.0.1-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] >>> jetty-maven-plugin:9.3.6.v20151106:run (default-cli) > test-compile @ adsops-core >>>
    [INFO]
    [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ adsops-core ---
    [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
    [INFO] Copying 2311 resources
    [INFO]
    [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ adsops-core ---
    [INFO] Nothing to compile - all classes are up to date
    [INFO]
    [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ adsops-core ---
    [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
    [INFO] skip non existing resourceDirectory E:\Projects\ADpost\ops\dev\src\test\resources
    [INFO]
    [INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ adsops-core ---
    [INFO] No sources to compile
    [INFO]
    [INFO] <<< jetty-maven-plugin:9.3.6.v20151106:run (default-cli) < test-compile @ adsops-core <<<
    [INFO]
    [INFO]
    [INFO] --- jetty-maven-plugin:9.3.6.v20151106:run (default-cli) @ adsops-core ---
    [INFO] Logging initialized @3121ms
    [INFO] Configuring Jetty for project: adsops-core
    [INFO] webAppSourceDirectory not set. Trying src\main\webapp
    [INFO] Reload Mechanic: automatic
    [INFO] Classes = E:\Projects\ADpost\ops\dev\target\classes
    [INFO] Context path = /adsops
    [INFO] Tmp directory = E:\Projects\ADpost\ops\dev\target\tmp
    [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
    [INFO] Web overrides =  none
    [INFO] web.xml file = null
    [INFO] Webapp directory = E:\Projects\ADpost\ops\dev\src\main\webapp
    [INFO] jetty-9.3.6.v20151106
    [INFO] 2 Spring WebApplicationInitializers detected on classpath
    SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
    SLF4J: Defaulting to no-operation (NOP) logger implementation
    SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
    [INFO] Initializing Spring root WebApplicationContext
    Sep 06, 2017 1:15:59 PM org.hibernate.jpa.internal.util.LogHelper logPersistenceUnitInformation
    INFO: HHH000204: Processing PersistenceUnitInfo [
            name: default
            ...]
    Sep 06, 2017 1:15:59 PM org.hibernate.Version logVersion
    INFO: HHH000412: Hibernate Core {5.0.12.Final}
    Sep 06, 2017 1:15:59 PM org.hibernate.cfg.Environment <clinit>
    INFO: HHH000206: hibernate.properties not found
    Sep 06, 2017 1:15:59 PM org.hibernate.cfg.Environment buildBytecodeProvider
    INFO: HHH000021: Bytecode provider name : javassist
    Sep 06, 2017 1:15:59 PM org.hibernate.annotations.common.reflection.java.JavaReflectionManager <clinit>
    INFO: HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
    Sep 06, 2017 1:16:00 PM org.hibernate.dialect.Dialect <init>
    INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
    Sep 06, 2017 1:16:00 PM org.hibernate.validator.internal.util.Version <clinit>
    INFO: HV000001: Hibernate Validator 5.3.4.Final
    Sep 06, 2017 1:16:01 PM org.hibernate.tool.hbm2ddl.SchemaUpdate execute
    INFO: HHH000228: Running hbm2ddl schema update
    Sep 06, 2017 1:16:01 PM org.hibernate.hql.internal.QueryTranslatorFactoryInitiator initiateService
    INFO: HHH000397: Using ASTQueryTranslatorFactory
    [INFO] Initializing Spring FrameworkServlet 'dispatcher'
    [INFO] Started o.e.j.m.p.JettyWebAppContext@2e3cdec2{/adsops,file:///E:/Projects/ADpost/ops/dev/src/main/webapp/,AVAILABLE}{file:///E:/Projects/ADpost/ops/dev/src/main/webapp/}
    [INFO] Started ServerConnector@6a3e633a{HTTP/1.1,[http/1.1]}{0.0.0.0:8888}
    [INFO] Started @11100ms
    [INFO] Started Jetty Server
[INFO]正在扫描项目。。。
[信息]
[信息]------------------------------------------------------------------------
[信息]构建adsops核心0.0.1-SNAPSHOT
[信息]------------------------------------------------------------------------
[信息]
[信息]>>>jetty maven插件:9.3.6.v20151106:运行(默认cli)>测试编译@adsops核心>>>
[信息]
[信息]---maven资源插件:2.6:resources(默认资源)@adsops-core---
[警告]使用平台编码(实际上是Cp1252)复制过滤后的资源,即构建依赖于平台!
[信息]正在复制2311个资源
[信息]
[信息]---maven编译器插件:3.3:compile(默认编译)@adsops-core---
[信息]无需编译-所有类都是最新的
[信息]
[信息]---maven资源插件:2.6:testResources(默认testResources)@adsops-core---
[警告]使用平台编码(实际上是Cp1252)复制过滤后的资源,即构建依赖于平台!
[信息]跳过不存在的资源目录E:\Projects\ADpost\ops\dev\src\test\resources
[信息]
[信息]---maven编译器插件:3.3:testCompile(默认testCompile)@adsops-core---
[信息]没有要编译的源
[信息]
[信息]