mercredi 1 avril 2015

I want to use <mvc:resource/> such as <mvc:resources mapping="/images/**" location="/images/" /> <mvc:resources mapping="/resources/**" location="/resources/" /> in context-mvc.groovy,and I do not know how to write.help me~



import org.springframework.web.servlet.view.InternalResourceViewResolver

beans {
xmlns context: "http://ift.tt/GArMu7"


context."component-scan"("base-package" : "com.oberon.fm")

viewResolver(InternalResourceViewResolver) {
prefix = "/pages/"
suffix = ".jsp"
}
}

Aucun commentaire:

Enregistrer un commentaire