Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/380.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/14.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 404带有默认模板的spring mvc中出现错误_Java_Spring_Jsp_Spring Mvc - Fatal编程技术网

Java 404带有默认模板的spring mvc中出现错误

Java 404带有默认模板的spring mvc中出现错误,java,spring,jsp,spring-mvc,Java,Spring,Jsp,Spring Mvc,我是SpringSource的新手, 我根据模板创建了一个Spring MVC项目, 我什么也没做,只是在服务器home.jsp文件上运行 但是我得到了404错误 我不知道该怎么办 因为我的控制台中没有错误。 我能做什么? 请帮帮我 这是我在控制台中得到的 提前谢谢 (我无法附加图像,因为我没有足够的声誉点数。) 6월 17, 2013 1:47:04 오전 com.springsource.tcserver.security.propertyCoder 信息:使用基于内存的密钥的tc运行时属性

我是SpringSource的新手, 我根据模板创建了一个Spring MVC项目, 我什么也没做,只是在服务器
home.jsp
文件上运行 但是我得到了
404错误

我不知道该怎么办 因为我的控制台中没有错误。 我能做什么? 请帮帮我

这是我在控制台中得到的 提前谢谢

(我无法附加图像,因为我没有足够的声誉点数。)

6월 17, 2013 1:47:04 오전 com.springsource.tcserver.security.propertyCoder
信息:使用基于内存的密钥的tc运行时属性解码器
6.월 17, 2013 1:47:04 오전 com.springsource.tcserver.security.propertyCoder
信息:tcServer运行时属性解码器已在200毫秒内初始化
6.월 17, 2013 1:47:04 오전 org.apache.coyote.AbstractProtocol init
信息:正在初始化ProtocolHandler[“http-bio-8080”]
6.월 17, 2013 1:47:04 오전 com.springsource.tcserver.servicability.rmi.JmxSocketListener init
信息:在86毫秒内于127.0.0.1:6969启动JMX注册表
6.월 17, 2013 1:47:04 오전 org.apache.catalina.startup.catalina加载
信息:初始化处理时间为638毫秒
6.월 17, 2013 1:47:04 오전 org.apache.catalina.core.StandardService startInternal
信息:开始服务Catalina
6.월 17, 2013 1:47:04 오전 org.apache.catalina.core.StandardEngine startInternal
信息:启动Servlet引擎:VMware vFabric tc Runtime 2.8.2.RELEASE/7.0.35.B.RELEASE
6.월 17, 2013 1:47:04 오전 org.apache.catalina.startup.HostConfig部署描述符
信息:部署配置描述符C:\springsource\vfabric-tc-server-developer-2.8.2.RELEASE\base instance\conf\Catalina\localhost\test.xml
6.월 17, 2013 1:47:04 오전 org.apache.catalina.startup.SetContextPropertiesRule begin
警告:[SetContextPropertiesRule]{Context}将属性“source”设置为“org.eclipse.jst.jee.server:test”未找到匹配的属性。
6.월 17, 2013 1:47:05 오전 org.apache.catalina.core.ApplicationContext日志
信息:在类路径上未检测到Spring WebApplicationInitializer类型
6.월 17, 2013 1:47:05 오전 org.apache.catalina.core.ApplicationContext日志
信息:正在初始化Spring根WebApplicationContext
信息:org.springframework.web.context.ContextLoader-根WebApplicationContext:初始化已开始
信息:org.springframework.web.context.support.XmlWebApplicationContext-刷新根WebApplicationContext:启动日期[Mon Jun 17 01:47:05 KST 2013];上下文层次结构的根
信息:org.springframework.beans.factory.xml.XmlBeanDefinitionReader-从ServletContext资源[/WEB-INF/spring/root-context.xml]加载xml bean定义
信息:org.springframework.beans.factory.support.DefaultListableBeanFactory-在org.springframework.beans.factory.support中预实例化单例。DefaultListableBeanFactory@2db55393:定义bean[];工厂层次结构的根
信息:org.springframework.web.context.ContextLoader-根WebApplicationContext:初始化在201毫秒内完成
6.월 17, 2013 1:47:05 오전 org.apache.catalina.core.ApplicationContext日志
信息:正在初始化Spring FrameworkServlet“appServlet”
信息:org.springframework.web.servlet.DispatcherServlet-FrameworkServlet“appServlet”:初始化已开始
信息:org.springframework.web.context.support.XmlWebApplicationContext-刷新命名空间“appServlet servlet”的WebApplicationContext:启动日期[Mon Jun 17 01:47:05 KST 2013];父:根WebApplicationContext
信息:org.springframework.beans.factory.xml.XmlBeanDefinitionReader-从ServletContext资源[/WEB-INF/spring/appServlet/servlet context.xml]加载xml bean定义
信息:org.springframework.context.annotation.ClassPathBeanDefinitionScanner-JSR-330“javax.inject.Named”找到并支持用于组件扫描的注释
信息:org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor-JSR-330“javax.inject.inject”注释已找到并支持自动布线
信息:org.springframework.beans.factory.support.DefaultListableBeanFactory-在org.springframework.beans.factory.support中预实例化单例。DefaultListableBeanFactory@73ca0d49:定义bean[org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappeInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeannamerHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,org.springframework.web.servlet.view.InternalResourceViewResolver#0,homeController,org.springframework.context.annotation.internalConfigurationAnnotationProcess或者,org.springframework.context.annotation.InternalAutowiredNotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0];父项:org.springframework.beans.factory.support。DefaultListableBeanFactory@2db55393
信息:org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping-将“{[/],methods=[GET],params=[],headers=[],consumes=[],products=[],custom=[]}”映射到公共java.lang.String.com.example.test.HomeController.home(java.util.Locale,org.springframework.ui.Model)上
信息:org.springframework.web.servlet.handler.simplerlhandlermapping-映射UR
6월 17, 2013 1:47:04 오전 com.springsource.tcserver.security.PropertyDecoder <init>
INFO: tc Runtime property decoder using memory-based key
6월 17, 2013 1:47:04 오전 com.springsource.tcserver.security.PropertyDecoder <init>
INFO: tcServer Runtime property decoder has been initialized in 200 ms
6월 17, 2013 1:47:04 오전 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
6월 17, 2013 1:47:04 오전 com.springsource.tcserver.serviceability.rmi.JmxSocketListener init
INFO: Started up JMX registry on 127.0.0.1:6969 in 86 ms
6월 17, 2013 1:47:04 오전 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 638 ms
6월 17, 2013 1:47:04 오전 org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
6월 17, 2013 1:47:04 오전 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: VMware vFabric tc Runtime 2.8.2.RELEASE/7.0.35.B.RELEASE
6월 17, 2013 1:47:04 오전 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor C:\springsource\vfabric-tc-server-developer-2.8.2.RELEASE\base-instance\conf\Catalina\localhost\test.xml
6월 17, 2013 1:47:04 오전 org.apache.catalina.startup.SetContextPropertiesRule begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:test' did not find a matching property.
6월 17, 2013 1:47:05 오전 org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
6월 17, 2013 1:47:05 오전 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Mon Jun 17 01:47:05 KST 2013]; root of context hierarchy
INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/root-context.xml]
INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2db55393: defining beans []; root of factory hierarchy
INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 201 ms
6월 17, 2013 1:47:05 오전 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'appServlet'
INFO : org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'appServlet': initialization started
INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refreshing WebApplicationContext for namespace 'appServlet-servlet': startup date [Mon Jun 17 01:47:05 KST 2013]; parent: Root WebApplicationContext
INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/appServlet/servlet-context.xml]
INFO : org.springframework.context.annotation.ClassPathBeanDefinitionScanner - JSR-330 'javax.inject.Named' annotation found and supported for component scanning
INFO : org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@73ca0d49: defining beans [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,org.springframework.web.servlet.view.InternalResourceViewResolver#0,homeController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@2db55393
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.example.test.HomeController.home(java.util.Locale,org.springframework.ui.Model)
INFO : org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/resources/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0'
INFO : org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'appServlet': initialization completed in 540 ms
6월 17, 2013 1:47:06 오전 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\springsource\vfabric-tc-server-developer-2.8.2.RELEASE\base-instance\webapps\manager
6월 17, 2013 1:47:06 오전 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\springsource\vfabric-tc-server-developer-2.8.2.RELEASE\base-instance\webapps\ROOT
6월 17, 2013 1:47:06 오전 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
6월 17, 2013 1:47:06 오전 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1684 ms
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" %>
<html>
<head>
    <title>Home</title>
</head>
<body>
<h1>
    Hello world!  
</h1>

<P>  The time on the server is ${serverTime}. </P>
</body>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

    <!-- The definition of the Root Spring Container shared by all Servlets and Filters -->
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/spring/root-context.xml</param-value>
    </context-param>

    <!-- Creates the Spring Container shared by all Servlets and Filters -->
    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>

    <!-- Processes application requests -->
    <servlet>
        <servlet-name>appServlet</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>/WEB-INF/spring/appServlet/servlet-context.xml</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>appServlet</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

</web-app>
<property name="context-root" value="my_app"/>
<Context docBase="project_name " path="/my_app" reloadable="true" source="org.eclipse.jst.jee.server:eatin"/>