package com.itheima;

import com.itheima.serializer.FastJsonRedisSerializer;
import com.itheima.serializer.StringRedisSerializer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class FrameworkMessageApplication {

	public static void main(String[] args) {
		SpringApplication.run(FrameworkMessageApplication.class, args);
	}

	/***
	 *
	 * @return
	 */
	@Bean
	public ServerEndpointExporter serverEndpointExporter(){
		return new ServerEndpointExporter();
	}
}
