我看了一下控制台:
五月 10, 2019 5:02:41 下午 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jdk1.8.0_101\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\ProgramData\Oracle\Java\javapath;D:\app\nj\product\11.2.0\dbhome_2\bin;C:\Program Files (x86)\Lenovo\FusionEngine;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\D:\Program Files\Java\jdk1.7.0_17\bin;D:\Program Files\Java\jdk1.7.0_17\jre\bin;D:\Program Files\apache-tomcat-7.0.37\lib;D:\Program Files\apache-tomcat-7.0.37\bin;D:\Program Files\TortoiseSVN\bin;D:\Program Files\mysql-5.6.25-winx64\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseGit\bin;C:\Program Files\Common Files\Intel\WirelessCommon\;D:\Program Files\Java\jdk1.7.0_17\bin;C:\WINDOWS\System32\OpenSSH\;C:\ProgramData\Oracle\Java\javapath;D:\app\nj\product\11.2.0\dbhome_2\bin;C:\Program Files (x86)\Lenovo\FusionEngine;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\D:\Program Files\Java\jdk1.7.0_17\bin;D:\Program Files\Java\jdk1.7.0_17\jre\bin;D:\Program Files\apache-tomcat-7.0.37\lib;D:\Program Files\apache-tomcat-7.0.37\bin;D:\Program Files\TortoiseSVN\bin;D:\Program Files\mysql-5.6.25-winx64\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseGit\bin;C:\Program Files\Common Files\Intel\WirelessCommon\;D:\Program Files\Java\jdk1.7.0_17\bin;C:\WINDOWS\System32\OpenSSH\;D:\Program Files\Java\jdk1.8.0_101\bin;D:\开发工具2\maven\apache-maven-3.3.9\bin;.
五月 10, 2019 5:02:42 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
五月 10, 2019 5:02:42 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
五月 10, 2019 5:02:42 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 857 ms
五月 10, 2019 5:02:42 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
五月 10, 2019 5:02:42 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.37
五月 10, 2019 5:02:42 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
五月 10, 2019 5:02:42 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
五月 10, 2019 5:02:42 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 84 ms
五月 10, 2019 5:02:42 下午 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\lianxi\permission\target\permission\WEB-INF\lib\el-api-6.0.36.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/el/Expression.class
五月 10, 2019 5:02:42 下午 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\lianxi\permission\target\permission\WEB-INF\lib\servlet-api-6.0.36.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
五月 10, 2019 5:02:47 下午 org.springframework.web.context.ContextLoader initWebApplicationContext
信息: Root WebApplicationContext: initialization started
五月 10, 2019 5:02:47 下午 org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh
信息: Refreshing Root WebApplicationContext: startup date [Fri May 10 17:02:47 CST 2019]; root of context hierarchy
五月 10, 2019 5:02:47 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [applicationContext.xml]
五月 10, 2019 5:02:50 下午 org.springframework.web.context.ContextLoader initWebApplicationContext
信息: Root WebApplicationContext: initialization completed in 3300 ms
五月 10, 2019 5:02:52 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\Program Files\apache-tomcat-7.0.37\webapps\manager
五月 10, 2019 5:03:02 下午 org.springframework.web.servlet.DispatcherServlet initServletBean
信息: FrameworkServlet 'spring': initialization started
五月 10, 2019 5:03:02 下午 org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh
信息: Refreshing WebApplicationContext for namespace 'spring-servlet': startup date [Fri May 10 17:03:02 CST 2019]; parent: Root WebApplicationContext
五月 10, 2019 5:03:02 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring-servlet.xml]
五月 10, 2019 5:03:03 下午 org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping register
信息: Mapped "{[/sys/dept/tree.json]}" onto public com.mmall.common.JsonData com.mmall.controller.SysDeptController.tree()
五月 10, 2019 5:03:03 下午 org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping register
信息: Mapped "{[/sys/dept/update.json]}" onto public com.mmall.common.JsonData com.mmall.controller.SysDeptController.updateDept(com.mmall.controller.DeptParam)
五月 10, 2019 5:03:03 下午 org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping register
信息: Mapped "{[/sys/dept/save.json]}" onto public com.mmall.common.JsonData com.mmall.controller.SysDeptController.saveDept(com.mmall.controller.DeptParam)
五月 10, 2019 5:03:03 下午 org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping register
信息: Mapped "{[/test/validate.json]}" onto public com.mmall.common.JsonData com.mmall.controller.TestController.validate(com.mmall.param.TestVo) throws com.mmall.exception.ParamException
五月 10, 2019 5:03:03 下午 org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping register
信息: Mapped "{[/test/hello.json]}" onto public com.mmall.common.JsonData com.mmall.controller.TestController.hello()
五月 10, 2019 5:03:05 下午 org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter initControllerAdviceCache
信息: Looking for @ControllerAdvice: WebApplicationContext for namespace 'spring-servlet': startup date [Fri May 10 17:03:02 CST 2019]; parent: Root WebApplicationContext
五月 10, 2019 5:03:05 下午 org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter initControllerAdviceCache
信息: Looking for @ControllerAdvice: WebApplicationContext for namespace 'spring-servlet': startup date [Fri May 10 17:03:02 CST 2019]; parent: Root WebApplicationContext
五月 10, 2019 5:03:05 下午 org.springframework.web.servlet.DispatcherServlet initServletBean
信息: FrameworkServlet 'spring': initialization completed in 3308 ms
应该是spring-servlet.xml 文件有问题,下面就是这个配置文件
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<context:annotation-config/>
<!-- 启动注解驱动的spring mvc 功能 -->
<mvc:annotation-driven/>
<mvc:interceptors>
<bean class="com.mmall.common.HttpInterceptor"/>
</mvc:interceptors>
<!-- 启动包扫描功能 -->
<context:component-scan base-package="com.mmall.controller"/>
<context:component-scan base-package="com.mmall.service"/>
<bean class="com.mmall.common.ApplicationContextHelper" lazy-init="false" />
<!-- <bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping"/>-->
<bean class="com.mmall.common.SpringExceptionResolver" />
<bean class="org.springframework.web.servlet.view.BeanNameViewResolver"/>
<bean id="jsonView" class="org.springframework.web.servlet.view.json.MappingJackson2JsonView"/>
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/views"/>
<property name="suffix" value=".jsp"/>
</bean>
</beans>
能帮我看一下是哪的问题吗