![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
choiyubo
这个作者很懒,什么都没留下…
展开
-
SpringCloud学习-Spring Cloud Eureka
SpringCloud学习-Spring Cloud Eureka一、搭建服务注册中心1.使用idea创建springboot项目添加依赖2.修改pom.xml文件<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:原创 2020-06-05 18:08:08 · 216 阅读 · 0 评论 -
Spring Boot-不同环境使用不同配置文件
文章目录Profile配置实例步骤一:创建两个配置文件,如测试(dev)和生产(prod)环境步骤二:测试环境配置运行步骤二:生产环境配置运行Profile配置Profile是Spring根据不同环境对不同配置的支持,全局Profile配置使用application-{profile}.properties。通过在application.properties中设置spring.profile...原创 2019-07-11 15:50:45 · 282 阅读 · 0 评论