JasperReport与spring集成的三种方式
- <bean?id="reportViewResolver"?class="org.springframework.web.servlet.view.XmlViewResolver">??
-
????<property?name="order"?value="1"/>??
-
????<property?name="location"?value="/WEB-INF/reports.xml"/>??
-
</bean>??
<bean id="reportViewResolver" class="org.springframework.web.servlet.view.XmlViewResolver">
<property name="order" value="1"/>
<property name="location" value="/WEB-INF/reports.xml"/>
</bean>
spring可以定义多个ViewResolver,对于普通的jsp的view,还需要如下定义一个ViewResolver:
- <bean?id="viewResolver"?class="org.springframework.web.servlet.view.InternalResourceViewResolver">