02 2019 档案

摘要:说到 WebApplicationInitializer,这个接口是为了实现代码配置 Web 功能。只要实现了这个接口,那么就可以实现 Filter,Servlet,Listener 等配置,跟在 xml 里面一样。 上篇文章《聊聊、Spring ServletContainerInitialize 阅读全文
posted @ 2019-02-18 23:00 香农随笔 阅读(166) 评论(0) 推荐(0) 编辑
摘要:SPI,Service Provider Interface,服务提供者接口。 Animal 接口 package com.rockcode.www.spi; public interface Animal { void speek(); } Dog 类 package com.rockcode.w 阅读全文
posted @ 2019-02-18 22:58 香农随笔 阅读(179) 评论(0) 推荐(0) 编辑