suifengyuluo
suifengyuluo
2017-05-12 06:59
采纳率: 100%
浏览 3.8k

redis tocmat共享session时,session中的值在redis中获取不到

context.xml配置:
图片说明

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

5条回答 默认 最新

  • suifengyuluo
    suifengyuluo 2017-05-12 07:01
    已采纳

    通过redis控制台获取session中的user信息
    图片说明

    感觉配置还有tomcat运行都没有啥问题,但是就是存储不进去redis中

    点赞 评论
  • suifengyuluo
    suifengyuluo 2017-05-12 07:00

    tomcat lib下jar包:
    图片说明

    代码:
    @RequestMapping("/set")
    public String setSession(HttpServletRequest request,Model model) {
    String user = request.getParameter("user");
    HttpSession session = request.getSession();
    ServletContext context = session.getServletContext();
    session.setAttribute("user", user);
    context.setAttribute("session", session);
    model.addAttribute("sessionid",session.getId());
    model.addAttribute("user",user);
    return "setSession";
    }

    ![图片说明](https://img-ask.csdn.net/upload/201705/12/1494571812_852821.png)
    
    点赞 评论
  • suifengyuluo
    suifengyuluo 2017-05-12 07:00

    图片说明

    点赞 评论
  • suifengyuluo
    suifengyuluo 2017-05-12 07:00

    tomcat启动日志;
    五月 12, 2017 2:52:37 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Server version: Apache Tomcat/7.0.57
    五月 12, 2017 2:52:37 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Server built: Nov 3 2014 08:39:16 UTC
    五月 12, 2017 2:52:37 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Server number: 7.0.57.0
    五月 12, 2017 2:52:37 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: OS Name: Windows 10
    五月 12, 2017 2:52:37 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: OS Version: 10.0
    五月 12, 2017 2:52:37 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Architecture: amd64
    五月 12, 2017 2:52:37 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: JAVA_HOME: D:\Program Files (x86)\Java\jdk1.8.0_77\jre
    五月 12, 2017 2:52:37 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: JVM Version: 1.8.0_77-b03
    五月 12, 2017 2:52:37 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: JVM Vendor: Oracle Corporation
    五月 12, 2017 2:52:37 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: CATALINA_BASE: D:\tomcattest\tomcat3\apache-tomcat-7.0.57
    五月 12, 2017 2:52:37 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: CATALINA_HOME: D:\tomcattest\tomcat3\apache-tomcat-7.0.57
    五月 12, 2017 2:52:37 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Djava.util.logging.config.file=D:\tomcattest\tomcat3\apache-tomcat-7.0.57\conf\logging.properties
    五月 12, 2017 2:52:37 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
    五月 12, 2017 2:52:37 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Djava.endorsed.dirs=D:\tomcattest\tomcat3\apache-tomcat-7.0.57\endorsed
    五月 12, 2017 2:52:37 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Dcatalina.base=D:\tomcattest\tomcat3\apache-tomcat-7.0.57
    五月 12, 2017 2:52:37 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Dcatalina.home=D:\tomcattest\tomcat3\apache-tomcat-7.0.57
    五月 12, 2017 2:52:37 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Djava.io.tmpdir=D:\tomcattest\tomcat3\apache-tomcat-7.0.57\temp
    五月 12, 2017 2:52:37 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    信息: Loaded APR based Apache Tomcat Native library 1.1.32 using APR version 1.5.1.
    五月 12, 2017 2:52:37 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
    五月 12, 2017 2:52:37 下午 org.apache.catalina.core.AprLifecycleListener initializeSSL
    信息: OpenSSL successfully initialized (OpenSSL 1.0.1j 15 Oct 2014)
    五月 12, 2017 2:52:37 下午 org.apache.coyote.AbstractProtocol init
    信息: Initializing ProtocolHandler ["http-apr-9003"]
    五月 12, 2017 2:52:37 下午 org.apache.coyote.AbstractProtocol init
    信息: Initializing ProtocolHandler ["ajp-apr-8009"]
    五月 12, 2017 2:52:37 下午 org.apache.catalina.startup.Catalina load
    信息: Initialization processed in 1113 ms
    五月 12, 2017 2:52:37 下午 org.apache.catalina.core.StandardService startInternal
    信息: Starting service Catalina
    五月 12, 2017 2:52:37 下午 org.apache.catalina.core.StandardEngine startInternal
    信息: Starting Servlet Engine: Apache Tomcat/7.0.57
    五月 12, 2017 2:52:37 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:\tomcattest\tomcat3\apache-tomcat-7.0.57\webapps\docs
    五月 12, 2017 2:52:38 下午 com.radiadesign.catalina.session.RedisSessionManager startInternal
    信息: Attached to RedisSessionHandlerValve
    五月 12, 2017 2:52:38 下午 com.radiadesign.catalina.session.RedisSessionManager initializeSerializer
    信息: Attempting to use serializer :com.radiadesign.catalina.session.JavaSerializer
    五月 12, 2017 2:52:38 下午 com.radiadesign.catalina.session.RedisSessionManager startInternal
    信息: Will expire sessions after 1800 seconds
    五月 12, 2017 2:52:38 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory D:\tomcattest\tomcat3\apache-tomcat-7.0.57\webapps\docs has finished in 417 ms
    五月 12, 2017 2:52:38 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:\tomcattest\tomcat3\apache-tomcat-7.0.57\webapps\examples
    五月 12, 2017 2:52:38 下午 com.radiadesign.catalina.session.RedisSessionManager startInternal
    信息: Attached to RedisSessionHandlerValve
    五月 12, 2017 2:52:38 下午 com.radiadesign.catalina.session.RedisSessionManager initializeSerializer
    信息: Attempting to use serializer :com.radiadesign.catalina.session.JavaSerializer
    五月 12, 2017 2:52:38 下午 com.radiadesign.catalina.session.RedisSessionManager startInternal
    信息: Will expire sessions after 1800 seconds
    五月 12, 2017 2:52:38 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory D:\tomcattest\tomcat3\apache-tomcat-7.0.57\webapps\examples has finished in 367 ms
    五月 12, 2017 2:52:38 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:\tomcattest\tomcat3\apache-tomcat-7.0.57\webapps\host-manager
    五月 12, 2017 2:52:38 下午 com.radiadesign.catalina.session.RedisSessionManager startInternal
    信息: Attached to RedisSessionHandlerValve
    五月 12, 2017 2:52:38 下午 com.radiadesign.catalina.session.RedisSessionManager initializeSerializer
    信息: Attempting to use serializer :com.radiadesign.catalina.session.JavaSerializer
    五月 12, 2017 2:52:38 下午 com.radiadesign.catalina.session.RedisSessionManager startInternal
    信息: Will expire sessions after 1800 seconds
    五月 12, 2017 2:52:38 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory D:\tomcattest\tomcat3\apache-tomcat-7.0.57\webapps\host-manager has finished in 101 ms
    五月 12, 2017 2:52:38 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:\tomcattest\tomcat3\apache-tomcat-7.0.57\webapps\inmp
    五月 12, 2017 2:52:38 下午 org.apache.catalina.loader.WebappClassLoader validateJarFile
    信息: validateJarFile(D:\tomcattest\tomcat3\apache-tomcat-7.0.57\webapps\inmp\WEB-INF\lib\servlet-api-2.3.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
    14:52:40,268 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
    14:52:40,268 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
    14:52:40,269 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/D:/tomcattest/tomcat3/apache-tomcat-7.0.57/webapps/inmp/WEB-INF/classes/logback.xml]
    14:52:40,315 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
    14:52:40,334 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
    14:52:40,338 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [stdout]
    14:52:40,397 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
    14:52:40,401 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [file.all]
    14:52:40,416 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@840221052 - Will use zip compression
    14:52:40,418 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@840221052 - Will use the pattern ../logs/logback/archive/inmp_all_%d{yyyy-MM-dd}.%i.log for the active file
    14:52:40,421 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@3be6236b - The date pattern is 'yyyy-MM-dd' from file name pattern '../logs/logback/archive/inmp_all_%d{yyyy-MM-dd}.%i.log.zip'.
    14:52:40,421 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@3be6236b - Roll-over at midnight.
    14:52:40,422 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@3be6236b - Setting initial period to Fri May 12 14:21:12 CST 2017
    14:52:40,425 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[file.all] - This appender no longer admits a layout as a sub-component, set an encoder instead.
    14:52:40,425 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[file.all] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
    14:52:40,425 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[file.all] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
    14:52:40,427 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[file.all] - Active log file name: ../logs/logback/inmp.log
    14:52:40,427 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[file.all] - File property is set to [../logs/logback/inmp.log]
    14:52:40,429 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
    14:52:40,429 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [file.all.other]
    14:52:40,430 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@65020460 - Will use zip compression
    14:52:40,430 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@65020460 - Will use the pattern ../logs/logback/archive/inmp_other_%d{yyyy-MM-dd}.%i.log for the active file
    14:52:40,430 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@373be2b4 - The date pattern is 'yyyy-MM-dd' from file name pattern '../logs/logback/archive/inmp_other_%d{yyyy-MM-dd}.%i.log.zip'.
    14:52:40,430 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@373be2b4 - Roll-over at midnight.
    14:52:40,431 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@373be2b4 - Setting initial period to Fri May 12 14:49:21 CST 2017
    14:52:40,432 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[file.all.other] - This appender no longer admits a layout as a sub-component, set an encoder instead.
    14:52:40,432 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[file.all.other] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
    14:52:40,432 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[file.all.other] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
    14:52:40,432 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[file.all.other] - Active log file name: ../logs/logback/inmp_other.log
    14:52:40,432 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[file.all.other] - File property is set to [../logs/logback/inmp_other.log]
    14:52:40,432 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
    14:52:40,433 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [file.error]
    14:52:40,433 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@590400014 - Will use zip compression
    14:52:40,434 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@590400014 - Will use the pattern ../logs/logback/archive/inmp_err_%d{yyyy-MM-dd}.%i.log for the active file
    14:52:40,434 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@29c75878 - The date pattern is 'yyyy-MM-dd' from file name pattern '../logs/logback/archive/inmp_err_%d{yyyy-MM-dd}.%i.log.zip'.
    14:52:40,434 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@29c75878 - Roll-over at midnight.
    14:52:40,434 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@29c75878 - Setting initial period to Fri May 12 14:21:12 CST 2017
    14:52:40,435 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[file.error] - This appender no longer admits a layout as a sub-component, set an encoder instead.
    14:52:40,435 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[file.error] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
    14:52:40,435 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[file.error] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
    14:52:40,438 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[file.error] - Active log file name: ../logs/logback/inmp_err.log
    14:52:40,438 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[file.error] - File property is set to [../logs/logback/inmp_err.log]
    14:52:40,439 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.classic.AsyncAppender]
    14:52:40,443 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [file.async]
    14:52:40,444 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [file.all] to ch.qos.logback.classic.AsyncAppender[file.async]
    14:52:40,444 |-INFO in ch.qos.logback.classic.AsyncAppender[file.async] - Attaching appender named [file.all] to AsyncAppender.
    14:52:40,444 |-INFO in ch.qos.logback.classic.AsyncAppender[file.async] - Setting discardingThreshold to 0
    14:52:40,444 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.classic.AsyncAppender]
    14:52:40,444 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [file.async.other]
    14:52:40,445 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [file.all.other] to ch.qos.logback.classic.AsyncAppender[file.async.other]
    14:52:40,445 |-INFO in ch.qos.logback.classic.AsyncAppender[file.async.other] - Attaching appender named [file.all.other] to AsyncAppender.
    14:52:40,445 |-INFO in ch.qos.logback.classic.AsyncAppender[file.async.other] - Setting discardingThreshold to 0
    14:52:40,446 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [com.xinwei] to false
    14:52:40,446 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - com.xinwei level set to DEBUG
    14:52:40,446 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [stdout] to Logger[com.xinwei]
    14:52:40,446 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [file.async] to Logger[com.xinwei]
    14:52:40,446 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [file.error] to Logger[com.xinwei]
    14:52:40,446 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG
    14:52:40,446 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [stdout] to Logger[ROOT]
    14:52:40,446 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [file.async.other] to Logger[ROOT]
    14:52:40,446 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [file.error] to Logger[ROOT]
    14:52:40,446 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
    14:52:40,447 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@2b34fe2e - Registering current configuration as safe fallback point

    五月 12, 2017 2:52:40 下午 org.springframework.web.context.ContextLoader initWebApplicationContext
    信息: Root WebApplicationContext: initialization started
    五月 12, 2017 2:52:40 下午 org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh
    信息: Refreshing Root WebApplicationContext: startup date [Fri May 12 14:52:40 CST 2017]; root of context hierarchy
    五月 12, 2017 2:52:40 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    信息: Loading XML bean definitions from class path resource [applicationContext.xml]
    五月 12, 2017 2:52:40 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    信息: Loading XML bean definitions from class path resource [spring-mybatis.xml]
    五月 12, 2017 2:52:41 下午 org.springframework.context.support.PropertySourcesPlaceholderConfigurer loadProperties
    信息: Loading properties file from class path resource [jdbc-config.properties]
    2017-05-12 14:52:41.283 DEBUG[localhost-startStop-1]org.apache.ibatis.logging.LogFactory.setImplementation():135 -Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.
    2017-05-12 14:52:41.419 DEBUG[localhost-startStop-1]org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory():411 -Property configuration or 'configLocation' not specified, using default MyBatis Configuration
    2017-05-12 14:52:41.619 DEBUG[localhost-startStop-1]org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory():528 -Parsed mapper file: 'file [D:\tomcattest\tomcat3\apache-tomcat-7.0.57\webapps\inmp\WEB-INF\classes\com\xinwei\omc\mapping\OperatorMapper.xml]'
    五月 12, 2017 2:52:41 下午 org.springframework.web.context.ContextLoader initWebApplicationContext
    信息: Root WebApplicationContext: initialization completed in 1087 ms
    五月 12, 2017 2:52:41 下午 com.radiadesign.catalina.session.RedisSessionManager startInternal
    信息: Attached to RedisSessionHandlerValve
    五月 12, 2017 2:52:41 下午 com.radiadesign.catalina.session.RedisSessionManager initializeSerializer
    信息: Attempting to use serializer :com.radiadesign.catalina.session.JavaSerializer
    五月 12, 2017 2:52:41 下午 com.radiadesign.catalina.session.RedisSessionManager startInternal
    信息: Will expire sessions after 1800 seconds
    五月 12, 2017 2:52:41 下午 org.springframework.web.servlet.DispatcherServlet initServletBean
    信息: FrameworkServlet 'hessian': initialization started
    五月 12, 2017 2:52:41 下午 org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh
    信息: Refreshing WebApplicationContext for namespace 'hessian-servlet': startup date [Fri May 12 14:52:41 CST 2017]; parent: Root WebApplicationContext
    五月 12, 2017 2:52:41 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    信息: Loading XML bean definitions from class path resource [spring-hessian.xml]
    五月 12, 2017 2:52:41 下午 org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping registerHandler
    信息: Mapped URL path [/inmpService] onto handler '/inmpService'
    五月 12, 2017 2:52:41 下午 org.springframework.web.servlet.DispatcherServlet initServletBean
    信息: FrameworkServlet 'hessian': initialization completed in 230 ms
    五月 12, 2017 2:52:41 下午 org.springframework.web.servlet.DispatcherServlet initServletBean
    信息: FrameworkServlet 'SpringMVC': initialization started
    五月 12, 2017 2:52:41 下午 org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh
    信息: Refreshing WebApplicationContext for namespace 'SpringMVC-servlet': startup date [Fri May 12 14:52:41 CST 2017]; parent: Root WebApplicationContext
    五月 12, 2017 2:52:41 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    信息: Loading XML bean definitions from class path resource [spring-mvc.xml]
    五月 12, 2017 2:52:42 下午 org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping registerHandler
    信息: Mapped URL path [/test/get] onto handler 'testController'
    五月 12, 2017 2:52:42 下午 org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping registerHandler
    信息: Mapped URL path [/test/get.*] onto handler 'testController'
    五月 12, 2017 2:52:42 下午 org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping registerHandler
    信息: Mapped URL path [/test/get/] onto handler 'testController'
    五月 12, 2017 2:52:42 下午 org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping registerHandler
    信息: Mapped URL path [/test/set] onto handler 'testController'
    五月 12, 2017 2:52:42 下午 org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping registerHandler
    信息: Mapped URL path [/test/set.*] onto handler 'testController'
    五月 12, 2017 2:52:42 下午 org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping registerHandler
    信息: Mapped URL path [/test/set/] onto handler 'testController'
    五月 12, 2017 2:52:42 下午 org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping registerHandler
    信息: Mapped URL path [/test/toIndex] onto handler 'testController'
    五月 12, 2017 2:52:42 下午 org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping registerHandler
    信息: Mapped URL path [/test/toIndex.*] onto handler 'testController'
    五月 12, 2017 2:52:42 下午 org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping registerHandler
    信息: Mapped URL path [/test/toIndex/] onto handler 'testController'
    五月 12, 2017 2:52:42 下午 org.springframework.web.servlet.DispatcherServlet initServletBean
    信息: FrameworkServlet 'SpringMVC': initialization completed in 521 ms
    五月 12, 2017 2:52:42 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory D:\tomcattest\tomcat3\apache-tomcat-7.0.57\webapps\inmp has finished in 3,657 ms
    五月 12, 2017 2:52:42 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:\tomcattest\tomcat3\apache-tomcat-7.0.57\webapps\manager
    五月 12, 2017 2:52:42 下午 com.radiadesign.catalina.session.RedisSessionManager startInternal
    信息: Attached to RedisSessionHandlerValve
    五月 12, 2017 2:52:42 下午 com.radiadesign.catalina.session.RedisSessionManager initializeSerializer
    信息: Attempting to use serializer :com.radiadesign.catalina.session.JavaSerializer
    五月 12, 2017 2:52:42 下午 com.radiadesign.catalina.session.RedisSessionManager startInternal
    信息: Will expire sessions after 1800 seconds
    五月 12, 2017 2:52:42 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory D:\tomcattest\tomcat3\apache-tomcat-7.0.57\webapps\manager has finished in 75 ms
    五月 12, 2017 2:52:42 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:\tomcattest\tomcat3\apache-tomcat-7.0.57\webapps\ROOT
    五月 12, 2017 2:52:42 下午 com.radiadesign.catalina.session.RedisSessionManager startInternal
    信息: Attached to RedisSessionHandlerValve
    五月 12, 2017 2:52:42 下午 com.radiadesign.catalina.session.RedisSessionManager initializeSerializer
    信息: Attempting to use serializer :com.radiadesign.catalina.session.JavaSerializer
    五月 12, 2017 2:52:42 下午 com.radiadesign.catalina.session.RedisSessionManager startInternal
    信息: Will expire sessions after 1800 seconds
    五月 12, 2017 2:52:42 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory D:\tomcattest\tomcat3\apache-tomcat-7.0.57\webapps\ROOT has finished in 56 ms
    五月 12, 2017 2:52:42 下午 org.apache.coyote.AbstractProtocol start
    信息: Starting ProtocolHandler ["http-apr-9003"]
    五月 12, 2017 2:52:42 下午 org.apache.coyote.AbstractProtocol start
    信息: Starting ProtocolHandler ["ajp-apr-8009"]
    五月 12, 2017 2:52:42 下午 org.apache.catalina.startup.Catalina start
    信息: Server startup in 4742 ms

    点赞 评论
  • suifengyuluo
    suifengyuluo 2017-05-12 08:44

    取值的姿势不对,问题已搞定

    点赞 评论

相关推荐