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 · 790 阅读 · 0 评论 -
redis在spring中的Cache应用
1.大家可以先看一下Spring之缓存注解@Cacheable https://blog.youkuaiyun.com/My_blankness/article/details/80988308 2.redis的缓存一般在service层配置。当访问改方法时,会先查找是否有该key的Cache,有的话,直接返回,没有的话,数据库查询出来,并且存入缓存中。 @Cacheable(“getUserById”) ...原创 2018-09-23 20:04:23 · 219 阅读 · 0 评论
分享