package xyz.wbsite.achat.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; import xyz.wbsite.achat.core.chat.ChatService; import xyz.wbsite.achat.core.chat.ChatServiceSampleImpl; import xyz.wbsite.achat.core.session.SessionService; import xyz.wbsite.achat.core.session.SessionServiceMemoryImpl; /** * 对话配置 * * @author wangbing * @version 0.0.1 * @since 1.8 */ @Configuration public class ChatConfig implements WebMvcConfigurer { @Bean public ChatService chatService() { return new ChatServiceSampleImpl(); } @Bean public SessionService sessionService() { return new SessionServiceMemoryImpl(); } }