SpringConfig.java 523 B

1234567891011121314
  1. package com.lovecoding.mvc.config;
  2. import org.springframework.context.annotation.ComponentScan;
  3. import org.springframework.context.annotation.Configuration;
  4. import org.springframework.context.annotation.Import;
  5. import org.springframework.context.annotation.PropertySource;
  6. import org.springframework.web.servlet.config.annotation.EnableWebMvc;
  7. @Configuration
  8. @Import( {JdbcConfig.class, MybatisConfig.class} )
  9. @ComponentScan("com.lovecoding.mvc")
  10. @PropertySource("classpath:db.properties")
  11. public class SpringConfig {
  12. }