4
我試圖完成團隊設置websphere配置文件活動時雲配置文件也被激活。Spring配置文件包含yaml文件的問題
YAML文件
---
spring:
application:
name: kicapp
output:
ansi:
enabled: ALWAYS
profiles:
active: local
#server:
#context-path:/
#port: 8080
#logging:
#level:
#org.springframework.security: DEBUG
---
spring:
profiles: local
---
spring:
profiles: unittest
---
spring:
profiles: cloud
test: loaded
---
spring:
profiles: websphere
include: cloud
當我設置--spring.profiles.active=websphere
我收到以下錯誤
引起:映射值在這裏不容許 '讀取器',第28行, 柱12: 包括:雲
試圖刪除'include'前面的''? – Marged
@大小,以便'include'不嵌套在'profiles'中? – ndrone
看看這個嗎? http://stackoverflow.com/questions/25985752/including-profiles-with-spring-profiles-include-seems-to-override-instead-of-inc。你使用哪個版本的Spring? – Marged