NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
`<springProfile>`标签允许您根据活动的Spring配置文件选择性地包含或排除配置部分。 在`<configuration>`元素中的任何位置都支持配置`<springProfile>`节点。 使用`name`属性指定哪个配置文件接受配置。 可以使用逗号分隔列表指定多个配置文件。 以下清单显示了三个示例配置文件: ``` <springProfile name="staging"> <!-- configuration to be enabled when the "staging" profile is active --> </springProfile> <springProfile name="dev, staging"> <!-- configuration to be enabled when the "dev" or "staging" profiles are active --> </springProfile> <springProfile name="!production"> <!-- configuration to be enabled when the "production" profile is not active --> </springProfile> ```