先访问不了webapp中的静态文件 配置如下
<mvc:resources location="/layui/" mapping="/layui/**"/>
<mvc:resources location="/static/" mapping="/static/**"/>
<context:component-scan base-package="com.ck.controller"/>
可以访问静态资源了 但是controller 又访问不了
加上 <mvc:annotation-driven/> 后能够正常访问