springboot
轨迹R
学习、经历、记录、复盘
展开
-
SpringBoot 配置文件读取(一)
SpringBoot 配置文件读取(一)文章目录SpringBoot 配置文件读取(一)1. 读取的顺序2. Profile-specific properties1. 读取的顺序Springboot有默认的读取application.properties顺序,具体顺序如下:当前项目或者jar包的目录路径 的config目录**(config与jar包平级)**当前目录类路径(cla...原创 2019-09-04 22:22:47 · 500 阅读 · 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 · 779 阅读 · 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 · 238 阅读 · 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 · 214 阅读 · 0 评论