package com.lovecoding.mvc.config;

import org.springframework.context.annotation.*;
import org.springframework.core.convert.converter.Converter;
import org.springframework.web.servlet.HandlerExceptionResolver;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.handler.SimpleMappingExceptionResolver;

@Configuration
@Import( {JdbcConfig.class, MybatisConfig.class}  )
@ComponentScan("com.lovecoding.mvc")
@PropertySource("classpath:db.properties")
public class SpringConfig {

//    @Bean
//    public HandlerExceptionResolver getMyException(){
//        MyException myException = new MyException();
//        return myException;
//    }

//    @Bean
//    public HandlerExceptionResolver getSimpleMappingExceptionResolver(){
//        SimpleMappingExceptionResolver ex = new SimpleMappingExceptionResolver();
//        ex.setDefaultErrorView("/ari.jsp");
//        return ex;
//    }


}
