springboot
_Jimmy_
这个作者很懒,什么都没留下…
展开
-
spring aop拦截指定方法和自定义注解
1、使用aop需要加入maven依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop...转载 2021-04-11 15:43:08 · 5196 阅读 · 0 评论 -
SpringBoot整合Hikari
Hikari是一款非常强大,高效,并且号称“史上最快连接池”。并且在springboot2.0之后,采用的默认数据库连接池就是Hikari。不需要引入依赖,已经在SpringBoot中包含了。 GitHub地址:https://github.com/brettwooldridge/HikariCP1、在yml中配置# 数据库配置spring: datasource: type: com.zaxxer.hi...转载 2020-08-30 22:09:21 · 329 阅读 · 0 评论 -
SpringBoot Whitelabel Error Page的根本原因,三种解决方案以及其特点
0、简述在学习这个学习笔记之前最好能够对spring mvc以及Tomcat有些了解,这样理解起来更加方便,如果需要知道最直接的解决方案,拖到最底部看样例代码即可。介绍了springboot的白页出现的真正原因,主要是没有合适的匹配情况出现404情况,然后跳转到系统默认的第一个ErrorPage,也就是白页内容上,然后根据其特定分别从三个角度,1、拦截器,2、新ErrorPage,3、自定...原创 2018-12-28 15:42:55 · 10768 阅读 · 0 评论 -
Spring Boot中文文档
作者:Phillip Webb, Dave Syer, Josh Long, Stéphane Nicoll, Rob Winch, Andy Wilkinson, Marcel Overdijk, Christian Dupuis, Sébastien Deleuze, Michael Simons翻译:...转载 2019-03-19 16:25:22 · 1769 阅读 · 0 评论