HttpSessionConfig.java 515 Bytes
Newer Older
PWF-WK01\pengwufeng committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
package com.beecode.inz.war;

import org.springframework.context.annotation.Bean;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

import com.beecode.inz.authentication.InzHeaderHttpSessionIdResolver;


/**
 * @author xionglinyao
 */
@EnableRedisHttpSession(maxInactiveIntervalInSeconds = 60*60)
public class HttpSessionConfig {
 
	@Bean
	public InzHeaderHttpSessionIdResolver inzHeaderHttpSessionIdResolver() {
		return new InzHeaderHttpSessionIdResolver(); 
	}

}