随笔分类 -  spring boot

摘要:引用自: https://miaoxinguo.github.io/logback/2015/02/05/logback.setting.html 其他参考: https://juejin.cn/post/6844903790349385735 输出格式配置可以参考官方文档: http://logb 阅读全文
posted @ 2021-01-19 11:21 一个小学僧 阅读(146) 评论(0) 推荐(0)
摘要:配置多环境 <!-- 多环境配置方案 命令dev包 : mvn -U clean compile package -P dev--> <profiles> <profile> <id>dev</id> <properties> <profileActive>dev</profileActive> < 阅读全文
posted @ 2020-12-17 15:15 一个小学僧 阅读(549) 评论(0) 推荐(0)
摘要:Spring Boot的默认不支持yaml文件,需要自定义一个factory import org.springframework.beans.factory.config.YamlPropertiesFactoryBean; import org.springframework.core.env. 阅读全文
posted @ 2020-12-16 18:50 一个小学僧 阅读(849) 评论(0) 推荐(0)
摘要:1、配置类 import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder; import org.springframework.boot.context.properties.ConfigurationPrope 阅读全文
posted @ 2019-12-25 18:48 一个小学僧 阅读(290) 评论(0) 推荐(0)
摘要:import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.PropertySource; import org.s 阅读全文
posted @ 2019-12-25 17:30 一个小学僧 阅读(2103) 评论(0) 推荐(0)