摘要: Besides using Profiles, we can also us Spring Expression Language. package com.frankmoley.lil.fid.config; import com.frankmoley.lil.fid.service.Greeti 阅读全文
posted @ 2020-12-04 22:23 Zhentiw 阅读(91) 评论(0) 推荐(0)
摘要: For example, inside code, we want production env & dev env print different time format. @Bean @Profile("!dev") public TimeService timeService(){ retur 阅读全文
posted @ 2020-12-04 16:01 Zhentiw 阅读(92) 评论(0) 推荐(0)
摘要: We can have some properties defined inside application.properties or application.yml file. application.properties: app.name=Frank app.greeting=Hello W 阅读全文
posted @ 2020-12-04 15:50 Zhentiw 阅读(110) 评论(0) 推荐(0)