springmvc获取js文件失败

在springmvc的配置文件中加入
<mvc:resources mapping="/javascript/**" location="/static_resources/javascript/" />
<mvc:resources mapping="/styles/**" location="/static_resources/css/" />
<mvc:resources mapping="/images/**" location="/static_resources/images/" />
<mvc:default-servlet-handler />

猜你喜欢

转载自zouhuiying.iteye.com/blog/2295467