import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.session.data.redis.config.annotation.web.server.EnableRedisWebSession;
import org.springframework.web.reactive.config.EnableWebFlux;
@Slf4j
@SpringBootApplication
@EnableWebFlux
@EnableScheduling
@EnableRetry
@EnableRedisWebSession(maxInactiveIntervalInSeconds = 60*60*2, redisNamespace="user:login:seession:") // 支持流式代码的用户登录session
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
end.
标签:启动,spring,webflux,springframework,60,org,import,annotation From: https://www.cnblogs.com/zhuwenjoyce/p/16989433.html