![](https://img-blog.csdnimg.cn/20190927151026427.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Spring
Spring Framework
凤舞九天音乐工厂
这个作者很懒,什么都没留下…
展开
-
使用Spring Environment遇到的问题, 如读取到配置不是自己实际想要的
环境:Spring 4.3.30.RELEASE, jdk 8 spring中可以很方便的将配置文件properties读入供全局使用 在简单的Spring项目中(非web),获取配置时会查找两个地方,System.getenv() 和System.getProperties().原创 2021-07-08 16:41:58 · 850 阅读 · 0 评论 -
Spring Boot 中的AOP使用示例,打印请求执行时间等
参考书:Spring实战(第4版)Spring Boot 2 精髓 IDE: IDEA 2019.2.3 Maven 3.6.2 Spring Boot 2.1.10.RELEASE Knife4j 一、准备: 1. 对Spring AOP 有点了解 2. pom中添加aop的starter 如果parent定义了版本,此处可以不加version <dependency...原创 2020-03-10 14:18:23 · 573 阅读 · 0 评论