The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers
来自ling
DispatcherServlet 对应的contextConfigLocation 中的xml文件中添加
<context:annotation-config /> <mvc:annotation-driven />
<servlet>
<servlet-name>ibizsys-dispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<!-- 默认/WEB-INF/[servlet名字]-servlet.xml加载上下文,
如果配置了contextConfigLocation参数,
将使用classpath:/ibizsys-dispatcher-servlet.xml加载上下文
-->
<param-name>contextConfigLocation</param-name>
<param-value>classpath:/ibizsys-dispatcher-servlet.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- 拦截匹配的请求,这里所有请求采用名字为ibizsys-dispatcher的DispatcherServlet处理 -->
<servlet-mapping>
<servlet-name>ibizsys-dispatcher</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ibizsys-dispatcher</servlet-name>
<url-pattern>/eit-api/*</url-pattern>
</servlet-mapping>