- package config;
- import org.springframework.context.annotation.ComponentScan;
- import org.springframework.context.annotation.ComponentScan.Filter;
- import org.springframework.context.annotation.Configuration;
- import org.springframework.context.annotation.FilterType;
- import org.springframework.web.servlet.config.annotation.EnableWebMvc;
- /**
- *@author 作者 Yu chenchen
- *@version 创建时间:2016年12月1日 下午4:55:11
- *类说明:
- */
- @Configuration@ComponentScan(basePackages = {
- "config"
- },
- excludeFilters(type = FilterType.ANNOTATION, value = EnableWebMvc.class)
- })
- //配置非web的组件,通常是后端的中间层和数据层组件
- public class RootConfig {
- }
来源: http://www.bubuko.com/infodetail-1855791.html