![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springMvc
keepons
Maybe I am not good enough,but you still chose me in the end .What can I to do is repay you with my whole life.----Dream
展开
-
mvc:annotation-driven mvc:default-servlet-handler和 ontext:component-scan base-package三者的关系
<mvc:annotation-driven />mvc:default-servlet-handler/和 <context:component-scan base-package=“com”></context:component-scan>三者之间的关系 1.<context:component-scan base-package=“com原创 2018-09-23 14:09:57 · 732 阅读 · 0 评论 -
redis在spring中的Cache应用
1.大家可以先看一下Spring之缓存注解@Cacheable https://blog.csdn.net/My_blankness/article/details/80988308 2.redis的缓存一般在service层配置。当访问改方法时,会先查找是否有该key的Cache,有的话,直接返回,没有的话,数据库查询出来,并且存入缓存中。 @Cacheable(“getUserById”) ...原创 2018-09-23 20:04:23 · 155 阅读 · 0 评论