1、在目标nacos中,添加命名空间
2、在源nacos中,导出配置
3、导入目标nacos配置
4、编辑配置
server:
port: 8090
#单位(10KB)
max-http-header-size: 10000
spring:
main:
#当遇到同样名字的时候,是否允许覆盖注册
allow-bean-definition-overriding: true
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
default-property-inclusion: NON_NULL
#配置数据源
datasource:
druid:
db-type: com.alibaba.druid.pool.DruidDataSource