具有属性值的RequestMapping的Spring Boot REST控制器测试

具有属性值的RequestMapping的Spring Boot REST控制器测试,第1张

具有属性值的RequestMapping的Spring Boot REST控制器测试

我使用一个

application.yml
文件而不是profile-properties
解决了该问题。yml文件正在使用
default
配置文件的标准定义,该定义在文件顶部定义。

#default settings. these can be overriden for each profile.#all these settings are overriden by env vars by spring priorityrest:  api:    version: 1base:   url: /query/api/${rest.api.version}---spring:   profiles: dev---spring:   profiles: productionmain:  show_banner: true---spring:   profiles: testbase:   url: /query/override/default/value


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5641591.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-16
下一篇2022-12-16

发表评论

登录后才能评论

评论列表(0条)

    保存