![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
开发框架
文章平均质量分 74
sdsxer
这个作者很懒,什么都没留下…
展开
-
开发框架-Spring-Profile的配置、激活和读取
说明一:这里只展示通过JavaConfig方式进行配置,暂时没有XML方式的配置。说明二:这里假设使用的上下文环境为SpringBoot。Spring Profile的配置:关键字:@Profile 注解这里以数据库的配置作为示例,程序中添加了两个配置,分别是开发环境和线上环境的数据库配置,只需根据实际的环境激活相应的配置即可。import javax.activati原创 2017-10-17 16:24:06 · 1486 阅读 · 0 评论 -
开发框架-Spring-错误或异常时返回统一的json格式
原文出处:http://blog.csdn.net/gebitan505/article/details/70158870demo示例:https://github.com/yongshun/some_java_code/tree/master/SpringBootRESTfulErrorHandlerDemo在开发rest接口时,我们往往会定义统一的返回格式,列如:{转载 2017-10-31 15:53:13 · 890 阅读 · 0 评论 -
开发框架-Spring-Spring Boot属性文件及多环境配置
原文出处:http://412887952-qq-com.iteye.com/blog/2307104原本这个章节是要介绍《log4j多环境不同日志级别的控制的》,但是没有这篇文章做基础的话,学习起来还是有点难度的,所以我们先一起了解下Spring Boot属性文件之多环境配置,当然文章中也会提到属性文件的一些基本知识,然后慢慢在升华到多环境配置。相信很多人选择Spring B转载 2017-11-13 16:23:59 · 476 阅读 · 0 评论 -
Android-框架-The Clean Architecture
原文出处:https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-architecture.htmlOver the last several years we’ve seen a whole range of ideas regarding the architecture of systems. These incl转载 2017-11-23 10:02:52 · 269 阅读 · 0 评论