@Component
public class MyControllerSet {
@Autowired()
public void setAllBeanObject2(Map objs, Map ctrls)
{
//objs和ctrls会分别返回所以的beanmap对象和BaseControler对象,看后图示。
int i = 0;
}
}
public abstract class BaseControler {
}
-------------------------------
@Controller
@RequestMapping("/demo")
public class DemoController extends BaseControler{
private static final Logger logger = Logger.getLogger(DemoController.class);
}
--------------------------------
@Controller
public class ExampleController extends BaseControler{
}