- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 Spring Boot拦截器(Interceptor)详解
文章目录Interceptor 介绍Interceptor 作用自定义 Interceptor运行程序并测试效果应用性能监控登录检测参考资料Interceptor 介绍拦截器(Interceptor)同 Filter 过滤器一样,它俩都是面向切面编程——AOP 的具体实现(AOP切面编程只是一种编程思想而已)。你可以使用 Interceptor 来执行某些任务,例如在 Controller ......
2019-12-14 22:54:10 52900 3
原创 Spring Boot注解学习之@ServletComponentScan及扩展
文章目录@ServletComponentScanServlet通过代码注册Servlet使用注解注册ServletFilter使用@WebFilter 注解继承 HttpFilter实现 Filter 接口Listener@WebListener总结@ServletComponentScan源码如下:@Target({ElementType.TYPE})@Retention(Retent...
2019-12-12 18:59:48 2191 1
原创 Navicat连接Oracle数据库instant client package is required for basic and tns connection
第一次用 Navicat 尝试连接 Oracle 数据库,报下面的错:Cannot load OCI DLL 87:instant client package is required for basic and tns connection报错原因:Oracle 连接需要装 client 才能让第三方工具通过 OCI(Oracle Call Interface) 来连接。具体解决方案:...
2019-12-09 21:48:27 2051
原创 Spring Boot注解学习之@SpringBootApplication(二)
文章目录@ComponentScan属性basePackages 与 valuebasePackageClassesincludeFiltersexcludeFilters添加自定义过滤规则@Component@ComponentScanscontext:component-scanSpringBootApplication 注解中4个方法小结参考文献@ComponentScan在讲述 @Co...
2019-12-09 21:43:56 199
原创 Spring Boot注解学习之@SpringBootApplication(一)
文章目录@SpringBootApplication@Configuration@Configuration 加载 Spring 方法1、@Configuration 配置 Spring 并启动 Spring 容器2、@Configuration 启动容器+@Bean 注册 bean3、@Configuration 启动容器+@Component 注册 Bean4、使用 AnnotationCon...
2019-12-09 21:41:22 279
instantclient_11_2.rar
2019-12-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人