As far as I can tell, there is no annotation, but there is a way to configure it via XML using an interceptor. For instance:
<mvc:interceptors> <mvc:interceptor> <mvc:mapping path="/status"/> <bean id="noCacheWebContentInterceptor" class="com.nyx.spring.mvc.WebContentInterceptor"> <property name="cacheSeconds" value="0"/> <property name="useExpiresHeader" value="true"/> <property name="useCacheControlHeader" value="true"/> <property name="useCacheControlNoStore" value="true"/> </bean> </mvc:interceptor> </mvc:interceptors>
source share