我最近刚刚开始研究 spring ,想直接用基于 java 来配置 spring 。发现无效。具体看 starkoverflow 这个问题。
AbstractAnnotationConfigDispatcherServletInitializer did not work for me