templates.service.bootstrap.yml.ftl Maven / Gradle / Ivy
spring:
main:
allow-circular-references: true
allow-bean-definition-overriding: true
mvc:
pathmatch:
matching-strategy: ant_path_matcher
application:
name: ${projectName}-service
cloud:
nacos:
discovery:
namespace: ${r'${NACOS_ACTIVE:}'}
server-addr: ${r'${NACOS_HOST:127.0.0.1}'}:${r'${NACOS_PORT:8848}'}
config:
namespace: ${r'${NACOS_ACTIVE:}'}
server-addr: ${r'${spring.cloud.nacos.discovery.server-addr}'}
file-extension: yml
shared-configs:
- application-${r'${spring.profiles.active}'}.${r'${spring.cloud.nacos.config.file-extension}'}
profiles:
active: ${r'${NACOS_ACTIVE:dev}'}