只在生产环境执行.

@ConditionalOnExpression(value = "'${spring.profiles.active}'.equals('pro')")
posted @ 2019-09-03 18:26  qqq齐  阅读(49)  评论(0)    收藏  举报