找到Nacos配置列表,选择开发环境learning-online-search

创建内容管理工程配置:search-dev.yaml

  • ID:search-dev.yaml

  • Group:learning-online-project

  • 描述:学成在线课程搜索微服务开发环境配置

  • 配置内容:

    content-api-dev.yaml
    server:
    servlet:
    context-path: /search
    port: 63080

    elasticsearch:
    host-list: 124.221.23.47:9200 # 多个节点逗号隔开
    course:
    index: course_publish
    source-fields: id,name,grade,mt,st,charge,pic,price,originalPrice,teachmod,validDays,createDate