Location view.properties in my spring mvc jasperreports project

I am trying to create reports with jasperreports, according to the documentation I need to configure ResourceBundleViewResolver as follows.

<bean id="resourceBundleView" class="org.springframework.web.servlet.view.ResourceBundleViewResolver"> <property name="basename" value="views"/> </bean> 

And a file called view.properties , the problem is that I do not know where to place it. Currently, I put it in a folder called views and my file. But when I start my controller, this error is called

Access problem /dwrsimple/reportes/reporteVehiculos.html. Reason: Could not find package to view base name, locale en_GB

Hope someone can help me.

+4
source share
2 answers

Thanks. I found that value = "views", which should be the name of the file, so I renamed my view .properties to views .properties

0
source

you need to save your views.properties in the WEB-INF / Classes folder

+1
source

Source: https://habr.com/ru/post/1307182/


All Articles