15
16 <!--注册注解驱动(开启SpringMVc注解的支持)-->
17 <mvc:annotation-driven>
18 <mvc:message-converters>
19 <bean class="com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter">
20 <!--声明类型转换,若返回的是json就需要加这个进行转换-->
21 <property name="supportedMediaTypes">
22 <list>
23 <value>application/jsonvalue>
24 list>
25 property>
26 bean>
27 mvc:message-converters>
28 mvc:annotation-driven>
29
30 <!--配置的视图解析器对象-->
31 <bean id="internalResourceViewResolver" class="org.springframework.web.servlet.view.InternalResource
32 prefix " value="/WEB-INF/pages/"/>
33 <property name="suffix" value=".jsp"/>
34 bean>
35
36 <!--配置拦截器-->
37 <mvc:interceptors>
beans > mvc:annotation-driven > mvc:message-converters > bean
Problems: Current File 16 Project Errors
Q
springmvc.xml D:(workspace library-system-master/target)classes 16 problems
0 Cannot resolve property 'supportedMediaTypes' :21
e Cannot resolve property 'prefix :32
e Cannot resolve property 'suffix' :33
项目启动受影响么?不受影响的话可以无视