![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
spring配置文件
#spring配置文件
杨杨小朋友
这个作者很懒,什么都没留下…
展开
-
springboot application-xxx.yml多环境配置 和maven搭配使用
我们项目中一般是三个环境仿真 dev测试 test生产pro对应的yml文件如下当编写了三个yml文件之后,进行优雅的切换和便捷的使用如下所示,在项目的pom.xml文件中这样进行设置 <!--分别设置仿真,测试,生产环境 --> <profiles> <!-- 仿真环境 --> <profile> <id>dev</id> <activation> <activeByD原创 2020-08-01 13:59:20 · 1103 阅读 · 0 评论 -
spring,spring-mvc,配置信息
spring-mvc.xml配置文件中的一些配置信息<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"原创 2020-05-18 11:00:09 · 142 阅读 · 0 评论