package com.sptg.common.core.cfgbeans;

import com.sptg.common.core.handler.GlobalExceptionHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * title: GlobalConfigBean
 * package: com.sptg.common.core.cfgbeans
 * description: 全局配置
 *                  
 *                
 */
@Configuration
public class GlobalConfigBean {

    /**
     * 全局异常处理器
     * @return GlobalExceptionHandler
     */
    @Bean
    public GlobalExceptionHandler globalExceptionHandler(){
        return new GlobalExceptionHandler();
    }

}
