context包下
NativeCache属于Service层
LoginUserHelper属于Web层
那么问题来了,在SpringMVC配置包扫描应该怎样配置?
可以使用<context:component-scan base-package="com.auth"></context:component-scan>来扫描com.auth下边的类及子包中的类