3

I'm using wro4j with a maven + spring-mvc based web application. I have two different wro.properties file to configure the web app differently when in development mode vs deployment mode. wro4j is configured to run using the runtime solution. The setup is working fine so far.

What I want to be able to do now is that in deployment mode, all the wro4j groups should be built immediately on server start up (as opposed to on-first-request per wro resource). I haven't found a configuration option for this - is there one? If not, how can I go about making this happen?

(I know I can probably get similar result using compile mode for deployment, but given that I already have runtime mode set up I am wondering if I can piggy back on that)

4

1 回答 1

1

一种可能的解决方案是创建一个自定义的requestHandler,它将遍历所有组并触发处理。您必须在应用程序启动期间调用该请求处理程序。

如果您想开箱即用此功能,请随时打开问题

于 2014-07-06T11:44:33.097 回答