![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
文章平均质量分 59
KeithRong
这个作者很懒,什么都没留下…
展开
-
源码解释:SpringBoot如果使用yml配置文件配置spring.profiles.active=01被识别成数字导致无法正确配置profile环境
现象描述 同样的配置,在 application.properties 解析出来是01,而在application.yml中解析出来是1 而如果你使用 --spring.profiles.active=01来配置也会被解析为01,那么会因为01和1不一致导致你的配置失效。 spring.profiles.active=01 spring: profiles: active: 01 原因 yml配置文件有类型的概念,会把数字转成INT类型,所以01会被解析成1 properties配置文件只会原创 2021-01-19 17:24:28 · 1400 阅读 · 1 评论 -
SpringMVC请求流程
1. 流程简要概括 遍历HandlerMapping集合得到HandlerExecutionChain,HandlerExecutionChain中包含Handler和Intercepetor (处理器和拦截器) 通过HandlerExecutionChain中的Handler获取HandlerAdapter 执行前置拦截器 applyPreHandle 执行目标方法返回 ModelAndVie...原创 2020-02-08 19:46:05 · 129 阅读 · 0 评论 -
Spring Framework模块
Core Container: 核心容器模块 (IOC) spring-beans-5.0.0.RELEASE spring-core-5.0.0.RELEASE spring-context-5.0.0.RELEASE spring-expression-5.0.0.RELEASE AOP + Aspects: 面向切面编程模块 spring-aop-5.0.0.RELEASE spring-...原创 2019-12-29 18:27:51 · 144 阅读 · 1 评论