You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
802 B

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();
}
}

Powered by TurnKey Linux.