摘要:
一、接口 1、EventListener 2、HttpSessionAttributeListener 继承EventListener接口 HttpSessionAttributeListener是“属性改变监听器”,当在会话对象中加入属性、移除属性或替换属性时,相对应的attributeAdded 阅读全文
posted @ 2017-07-31 16:18
leon66666
阅读(4882)
评论(0)
推荐(0)
摘要:
tomcat容器启动流程 启动tomcat容器,加载web.xml,建立整个容器(Servlet容器,这里是tomcat吧)的上下文,ServletContext,这时web.xml有个监听器,就是ContextLoaderListener,监听到这个事件,就会去扫描spring配置文件,默认是ap 阅读全文
posted @ 2017-07-31 16:17
leon66666
阅读(1733)
评论(0)
推荐(0)
摘要:
缓存注解有以下三个: @Cacheable @CacheEvict @CachePut @Cacheable(value=”accountCache”),这个注释的意思是,当调用这个方法的时候,会从一个名叫 accountCache 的缓存中查询,如果没有,则执行实际的方法(即查询数据库),并将执行 阅读全文
posted @ 2017-07-31 10:40
leon66666
阅读(1031)
评论(0)
推荐(0)

浙公网安备 33010602011771号