【发布时间】:2015-04-01 02:59:13
【问题描述】:
我想用<mvc:resource/>比如<mvc:resources mapping="/images/**" location="/images/" /><mvc:resources mapping="/resources/**" location="/resources/" />在context-mvc.groovy,不知道怎么写。帮帮我~
import org.springframework.web.servlet.view.InternalResourceViewResolver
beans {
xmlns context: "http://www.springframework.org/schema/context"
context."component-scan"("base-package" : "com.oberon.fm")
viewResolver(InternalResourceViewResolver) {
prefix = "/pages/"
suffix = ".jsp"
}
}
【问题讨论】:
标签: spring spring-mvc groovy gradle