
springboot
轨迹R
学习、经历、记录、复盘
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SpringBoot 配置文件读取(一)
SpringBoot 配置文件读取(一) 文章目录SpringBoot 配置文件读取(一)1. 读取的顺序2. Profile-specific properties 1. 读取的顺序 Springboot有默认的读取application.properties顺序,具体顺序如下: 当前项目或者jar包的目录路径 的config目录**(config与jar包平级)** 当前目录 类路径(cla...原创 2019-09-04 22:22:47 · 1931 阅读 · 0 评论 -
SpringBoot web项目介绍(一)
SpringBoot web项目介绍(一) 文章目录SpringBoot web项目介绍(一)1. 启动Springboot项目2. web容器配置(Tomcat为例)3. 访问请求4. 访问静态资源5. 访问页面6. mybatis-plus基础接入 1. 启动Springboot项目 我这里使用的是 idea开发工具(IntelliJ IDEA 2018.3.5 (Ultimate Editi...原创 2019-09-07 19:14:21 · 853 阅读 · 0 评论 -
springboot添加过滤器
springboot添加过滤器 文章目录springboot添加过滤器1. 基于java原生注解配置2. 基于springboot配置 1. 基于java原生注解配置 具体代码如下: //实现Filter接口 import javax.servlet.*; import javax.servlet.FilterConfig; import javax.servlet.annotation.WebF...原创 2019-10-09 21:25:24 · 385 阅读 · 0 评论 -
Springboot添加拦截器
Springboot添加拦截器 1. 实现HandlerInterceptor接口 //preHandle 方法执行前 postHandle方法执行后 渲染视图前 afterCompletion 渲染视图后执行 import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.ser...原创 2019-10-09 21:39:45 · 269 阅读 · 0 评论