mardi 31 mars 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.hope someone can 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